maemo-ui/src/mmyth_uicommon.h
author renatofilho
Wed Apr 04 21:36:07 2007 +0100 (2007-04-04)
branchtrunk
changeset 500 f92a59c9a9a5
child 754 cb885ee44618
permissions -rw-r--r--
[svn r505] fixed gmyth_file_transfer class
     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_ */