maemo-ui/src/mmyth_ui.h
author rosfran
Thu Nov 30 21:25:06 2006 +0000 (2006-11-30)
branchtrunk
changeset 157 585b3db817a1
child 208 c3c073032757
permissions -rw-r--r--
[svn r158] Fixes seg fault when getting URI fields.
     1 #ifndef MMYTH_UI_H_
     2 #define MMYTH_UI_H_
     3 
     4 #include <gtk/gtk.h>
     5 #include <gst/gst.h>
     6 
     7 #include "config.h"
     8 
     9 #ifdef MAEMO_PLATFORM
    10 #include "hildon-widgets/hildon-program.h"
    11 #include "hildon-widgets/hildon-window.h"
    12 #endif
    13 
    14 #include "mmyth_uicommon.h"
    15 #include "mmyth_recordui.h"
    16 #include "mmyth_schedulerui.h"
    17 #include "mmyth_tvplayer.h"
    18 
    19 typedef struct _MMythUi
    20 {
    21 
    22     /* The main application window */
    23     GtkWidget *main_window;
    24     MMythUiCommon *current_uicommon;
    25 
    26     /* Main widget components */
    27     GtkWidget *main_hbox;
    28     GtkWidget *video_alignment;
    29     GdkPixbuf *logo;
    30 
    31     /* Main widgets grouping */
    32     MMythUiCommon *main_uicommon;
    33     MMythUiCommon *video_uicommon;
    34     MMythUiCommon *epg_grid_uicommon;
    35     MMythUiCommon *record_uicommon;
    36     MMythUiCommon *schedule_uicommon;
    37     
    38     GtkWidget *videow;
    39     int idle_id;
    40     //GstTagList *tagcache;
    41     
    42     MMythRecordUI *mmyth_recordui;
    43     MMythSchedulerUI *mmyth_schedulerui;
    44 
    45 #ifdef MAEMO_PLATFORM
    46     HildonProgram *program;
    47     GtkMenu *main_menu;
    48     GtkWidget *menu_setup;
    49 #endif
    50 
    51     MMythTVPlayer *tvplayer;
    52     
    53 } MMythUi;
    54 
    55 GdkPixbuf *icon_sports, *icon_news, *icon_movies, *icon_shows;
    56 GdkColor main_bg_color;
    57 
    58 void mmyth_set_main_widget (MMythUi * mmyth_ui, MMythUiCommon * new_ui);
    59 //void mmyth_play_selected(GtkButton * button, gpointer user_data);
    60 
    61 #ifdef MAEMO_PLATFORM
    62 MMythUi *mmyth_ui_initialize (HildonProgram *program, GtkWidget * main_window);
    63 #else
    64 MMythUi *mmyth_ui_initialize (GtkWidget * main_window);
    65 #endif
    66 
    67 void mmyth_ui_finalize (MMythUi * mmyth_ui);
    68 
    69 void mmyth_ui_set_widget (MMythUi * mmyth_ui, MMythUiCommon * new_uicommon);
    70 
    71 GtkWidget* mmyth_ui_get_video_widget (MMythUi *mmyth_ui);
    72 
    73 #endif /* MMYTH_UI_H_ */