maemo-ui/src/mmyth_uicommon.h
author renatofilho
Fri Dec 01 19:41:39 2006 +0000 (2006-12-01)
branchtrunk
changeset 171 dda330ac986f
child 754 cb885ee44618
permissions -rw-r--r--
[svn r172]
     1 #ifndef MMYTH_UICOMMON_H_
     2 #define MMYTH_UICOMMON_H_
     3 
     4 #include "config.h"
     5 
     6 #include <gtk/gtk.h>
     7 #include <glib.h>
     8 
     9 #ifndef MAEMO_PLATFORM
    10 #define BUTTON_HEIGHT        50
    11 #define BUTTON_WIDTH        100
    12 #else
    13 #define BUTTON_HEIGHT       80
    14 #define BUTTON_WIDTH        150
    15 #endif
    16 
    17 #define MAIN_WINDOW_WIDTH	550
    18 #define MAIN_WINDOW_HEIGHT	250
    19 
    20 #define CHANNELS_DIALOG_WIDTH	300
    21 #define CHANNELS_DIALOG_HEIGHT	200
    22 
    23 #define SETTINGS_DIALOG_WIDTH	300
    24 #define SETTINGS_DIALOG_HEIGHT	120
    25 
    26 extern GdkColor main_bg_color;
    27 
    28 typedef struct _MMythUiCommon
    29 {
    30     GtkWidget *main_widget;
    31 
    32     /* event box to set the background color*/
    33     GtkWidget *event_box;
    34     
    35     GtkWidget *vbox;
    36     GtkWidget *button_vbox;
    37     GtkWidget *label;
    38 
    39     GtkWidget *button1;
    40     GtkWidget *button2;
    41     GtkWidget *button3;
    42     
    43     gint source_id;
    44 } MMythUiCommon;
    45 
    46 MMythUiCommon *mmyth_uicommon_new (GtkWidget * main_widget,
    47                                    const gchar * label1, const gchar * label2,
    48                                    const gchar * label3);
    49 void mmyth_uicommon_free (MMythUiCommon *ui_common);
    50 
    51 #endif /* MMYTH_UICOMMON_H_ */