[svn r261] A lot of fixes to the gmyth-0.1 library's external references.
1 #ifndef __MMYTH_EPG_GRID_WIDGET_H__
2 #define __MMYTH_EPG_GRID_WIDGET_H__
4 #include <glib-object.h>
6 #include <gtk/gtkvbox.h>
7 #include <gtk/gtkeventbox.h>
9 #include <gmyth/gmyth_common.h>
10 #include <gmyth/gmyth_backendinfo.h>
11 #define MAX_DISPLAY_CHANS 4
15 #define MMYTH_EPG_GRID_WIDGET_TYPE (mmyth_epg_grid_widget_get_type ())
16 #define MMYTH_EPG_GRID_WIDGET(obj) (GTK_CHECK_CAST ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidget))
17 #define MMYTH_EPG_GRID_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetClass))
18 #define IS_MMYTH_EPG_GRID_WIDGET(obj) (GTK_CHECK_TYPE ((obj), MMYTH_EPG_GRID_WIDGET_TYPE))
19 #define IS_MMYTH_EPG_GRID_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), MMYTH_EPG_GRID_WIDGET_TYPE))
20 #define MMYTH_EPG_GRID_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetClass))
21 #define MMYTH_EPG_GRID_WIDGET_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetPrivate))
24 typedef struct _MMythEpgGridWidget MMythEpgGridWidget;
25 typedef struct _MMythEpgGridWidgetClass MMythEpgGridWidgetClass;
26 typedef struct _MMythEpgGridWidgetPrivate MMythEpgGridWidgetPrivate;
28 struct _MMythEpgGridWidgetClass
30 GtkEventBoxClass parent_class;
36 struct _MMythEpgGridWidget
38 GtkEventBox event_box;
40 /* Selected Widgets Logic*/
41 /* List os Service Model in the current view
42 * the data of this list are GList for the programs
44 GList *epg_view_model;
46 /* Selected Schedule Item*/
47 GList *selected_grid_item;
52 GType mmyth_epg_grid_widget_get_type (void);
53 GtkWidget* mmyth_epg_grid_widget_new (void);
54 /*DVBHScheduleEvent* mmyth_epg_grid_get_selected_schedule (MMythEpgGridWidget * object);*/
55 void mmyth_epg_grid_widget_update_service (MMythEpgGridWidget * object,
56 GList *epg_grid_item_node);
57 gboolean mmyth_epg_grid_widget_key_press (MMythEpgGridWidget * object,
61 typedef struct _EpgGridItem EpgGridItem;
63 /* FIXME: auxiliary struct */
66 GMythProgramInfo *proginfo;
69 /* for callback purposes */
70 MMythEpgGridWidget *object;
75 #endif /* __MMYTH_EPG_GRID_WIDGET_H__ */