Merge branch 'master' of ssh://pege77@mercury.wipsl.com/var/git/irreco-theme-editor
[irreco.git] / irreco / src / core / irreco_bg_browser_widget.h
blob77bad2bf1df35f1f6382d97ba46b06d4cc759b43
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2008 Joni Kokko (t5kojo01@students.oamk.fi)
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 /**
21 * @addtogroup IrrecoBgBrowserWidget
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoBgBrowserWidget.
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
33 /* Typedef */
34 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
36 * Make sure that typedefs are available before we include anything elese.
38 * This makes sure that whatever other structures that depend on structures
39 * defined in this file will compile OK recardles of header inclusion order.
41 #ifndef __IRRECO_BG_BROWSER_WIDGET_H_TYPEDEF__
42 #define __IRRECO_BG_BROWSER_WIDGET_H_TYPEDEF__
44 typedef struct _IrrecoBgBrowserWidget IrrecoBgBrowserWidget;
45 typedef struct _IrrecoBgBrowserWidgetClass IrrecoBgBrowserWidgetClass;
47 #define IRRECO_TYPE_BG_BROWSER_WIDGET irreco_bg_browser_widget_get_type()
49 #define IRRECO_BG_BROWSER_WIDGET(obj) \
50 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
51 IRRECO_TYPE_BG_BROWSER_WIDGET, IrrecoBgBrowserWidget))
53 #define IRRECO_BG_BROWSER_WIDGET_CLASS(klass) \
54 (G_TYPE_CHECK_CLASS_CAST ((klass), \
55 IRRECO_TYPE_BG_BROWSER_WIDGET, IrrecoBgBrowserWidgetClass))
57 #define IRRECO_IS_BG_BROWSER_WIDGET(obj) \
58 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
59 IRRECO_TYPE_BG_BROWSER_WIDGET))
61 #define IRRECO_IS_BG_BROWSER_WIDGET_CLASS(klass) \
62 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_BG_BROWSER_WIDGET))
64 #define IRRECO_BG_BROWSER_WIDGET_GET_CLASS(obj) \
65 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
66 IRRECO_TYPE_BG_BROWSER_WIDGET, IrrecoBgBrowserWidgetClass))
68 #endif /* __IRRECO_BG_BROWSER_WIDGET_H_TYPEDEF__ */
72 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
73 /* Include */
74 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 #ifndef __IRRECO_BG_BROWSER_WIDGET_H__
76 #define __IRRECO_BG_BROWSER_WIDGET_H__
77 #include "irreco.h"
78 #include "irreco_internal_widget.h"
79 #include "irreco_listbox_text.h"
80 #include "irreco_listbox_image.h"
81 #include <glib-object.h>
85 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
86 /* Datatypes */
87 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
89 struct _IrrecoBgBrowserWidget {
90 IrrecoInternalWidget parent;
92 IrrecoListboxText *themes;
93 IrrecoListboxImage *images;
94 GString *current_theme;
95 IrrecoThemeBg *current_image;
96 GtkWidget *error_text;
97 GtkWidget *banner;
98 GtkWidget *hbox;
99 gint loader_index;
100 gint loader_state;
101 gint loader_func_id;
104 struct _IrrecoBgBrowserWidgetClass {
105 IrrecoInternalWidgetClass parent_class;
110 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
111 /* Macro */
112 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
116 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
117 /* Prototypes */
118 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
120 GType irreco_bg_browser_widget_get_type(void);
121 IrrecoBgBrowserWidget *irreco_bg_browser_widget_new(IrrecoData *irreco_data);
122 void irreco_bg_browser_widget_destroy(IrrecoBgBrowserWidget * self);
124 #endif /* __IRRECO_BG_BROWSER_WIDGET_H__ */
126 /** @} */