maemo-ui/src/mmyth_epg_grid_widget.h
branchtrunk
changeset 763 4ac83e3152c0
parent 208 c3c073032757
     1.1 --- a/maemo-ui/src/mmyth_epg_grid_widget.h	Wed Dec 06 20:22:48 2006 +0000
     1.2 +++ b/maemo-ui/src/mmyth_epg_grid_widget.h	Sat Jun 30 00:27:43 2007 +0100
     1.3 @@ -11,7 +11,6 @@
     1.4  #define MAX_DISPLAY_CHANS 4
     1.5  
     1.6  G_BEGIN_DECLS
     1.7 -
     1.8  #define MMYTH_EPG_GRID_WIDGET_TYPE               (mmyth_epg_grid_widget_get_type ())
     1.9  #define MMYTH_EPG_GRID_WIDGET(obj)               (GTK_CHECK_CAST ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidget))
    1.10  #define MMYTH_EPG_GRID_WIDGET_CLASS(klass)       (GTK_CHECK_CLASS_CAST ((klass), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetClass))
    1.11 @@ -19,57 +18,70 @@
    1.12  #define IS_MMYTH_EPG_GRID_WIDGET_CLASS(klass)    (GTK_CHECK_CLASS_TYPE ((klass), MMYTH_EPG_GRID_WIDGET_TYPE))
    1.13  #define MMYTH_EPG_GRID_WIDGET_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetClass))
    1.14  #define MMYTH_EPG_GRID_WIDGET_GET_PRIVATE(obj)   (G_TYPE_INSTANCE_GET_PRIVATE ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetPrivate))
    1.15 +typedef struct _MMythEpgGridWidget MMythEpgGridWidget;
    1.16 +typedef struct _MMythEpgGridWidgetClass MMythEpgGridWidgetClass;
    1.17 +typedef struct _MMythEpgGridWidgetPrivate MMythEpgGridWidgetPrivate;
    1.18  
    1.19 +struct _MMythEpgGridWidgetClass {
    1.20 +    GtkEventBoxClass parent_class;
    1.21  
    1.22 -typedef struct _MMythEpgGridWidget         MMythEpgGridWidget;
    1.23 -typedef struct _MMythEpgGridWidgetClass    MMythEpgGridWidgetClass;
    1.24 -typedef struct _MMythEpgGridWidgetPrivate  MMythEpgGridWidgetPrivate;
    1.25 -
    1.26 -struct _MMythEpgGridWidgetClass
    1.27 -{
    1.28 -  GtkEventBoxClass parent_class;
    1.29 -
    1.30 -  /* callbacks */
    1.31 -  /* no one for now */
    1.32 +    /*
    1.33 +     * callbacks 
    1.34 +     */
    1.35 +    /*
    1.36 +     * no one for now 
    1.37 +     */
    1.38  };
    1.39  
    1.40 -struct _MMythEpgGridWidget
    1.41 -{
    1.42 -    GtkEventBox event_box;
    1.43 +struct _MMythEpgGridWidget {
    1.44 +    GtkEventBox     event_box;
    1.45  
    1.46 -    /* Selected Widgets Logic*/
    1.47 -    /* List os Service Model in the current view
    1.48 -     * the data of this list are GList for the programs
    1.49 -     * of each service */
    1.50 -    GList *epg_view_model;
    1.51 +    /*
    1.52 +     * Selected Widgets Logic
    1.53 +     */
    1.54 +    /*
    1.55 +     * List os Service Model in the current view the data of this list are 
    1.56 +     * GList for the programs of each service 
    1.57 +     */
    1.58 +    GList          *epg_view_model;
    1.59  
    1.60 -    /* Selected Schedule Item*/
    1.61 -    GList *selected_grid_item;  
    1.62 +    /*
    1.63 +     * Selected Schedule Item
    1.64 +     */
    1.65 +    GList          *selected_grid_item;
    1.66  
    1.67  };
    1.68  
    1.69  
    1.70 -GType          mmyth_epg_grid_widget_get_type        (void);
    1.71 -GtkWidget*     mmyth_epg_grid_widget_new             (void);
    1.72 -/*DVBHScheduleEvent*    mmyth_epg_grid_get_selected_schedule  (MMythEpgGridWidget * object);*/
    1.73 -void           mmyth_epg_grid_widget_update_service  (MMythEpgGridWidget * object, 
    1.74 -                                                      GList *epg_grid_item_node);
    1.75 -gboolean       mmyth_epg_grid_widget_key_press       (MMythEpgGridWidget * object, 
    1.76 -                                                      GtkWidget * widget, 
    1.77 -                                                      GdkEventKey * event);
    1.78 +GType           mmyth_epg_grid_widget_get_type(void);
    1.79 +GtkWidget      *mmyth_epg_grid_widget_new(void);
    1.80 +/*
    1.81 + * DVBHScheduleEvent* mmyth_epg_grid_get_selected_schedule
    1.82 + * (MMythEpgGridWidget * object);
    1.83 + */
    1.84 +void            mmyth_epg_grid_widget_update_service(MMythEpgGridWidget *
    1.85 +                                                     object,
    1.86 +                                                     GList *
    1.87 +                                                     epg_grid_item_node);
    1.88 +gboolean        mmyth_epg_grid_widget_key_press(MMythEpgGridWidget *
    1.89 +                                                object, GtkWidget * widget,
    1.90 +                                                GdkEventKey * event);
    1.91  
    1.92  typedef struct _EpgGridItem EpgGridItem;
    1.93  
    1.94 -/* FIXME: auxiliary struct */
    1.95 +/*
    1.96 + * FIXME: auxiliary struct 
    1.97 + */
    1.98  struct _EpgGridItem {
    1.99  
   1.100      GMythProgramInfo *proginfo;
   1.101 -    GtkWidget *event_box;
   1.102 +    GtkWidget      *event_box;
   1.103  
   1.104 -    /* for callback purposes */
   1.105 +    /*
   1.106 +     * for callback purposes 
   1.107 +     */
   1.108      MMythEpgGridWidget *object;
   1.109  };
   1.110  
   1.111  G_END_DECLS
   1.112 -
   1.113 -#endif /* __MMYTH_EPG_GRID_WIDGET_H__ */
   1.114 +#endif                          /* __MMYTH_EPG_GRID_WIDGET_H__ */