maemo-ui/src/mmyth_uicommon.h
author renatofilho
Thu Jun 14 20:40:47 2007 +0100 (2007-06-14)
branchtrunk
changeset 754 cb885ee44618
parent 20 7174e23f7617
permissions -rw-r--r--
[svn r760] changed code style to Kernel Normal Form style with tabsize=4
     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     GtkWidget      *main_widget;
    30 
    31     /*
    32      * event box to set the background color
    33      */
    34     GtkWidget      *event_box;
    35 
    36     GtkWidget      *vbox;
    37     GtkWidget      *button_vbox;
    38     GtkWidget      *label;
    39 
    40     GtkWidget      *button1;
    41     GtkWidget      *button2;
    42     GtkWidget      *button3;
    43 
    44     gint            source_id;
    45 } MMythUiCommon;
    46 
    47 MMythUiCommon  *mmyth_uicommon_new(GtkWidget * main_widget,
    48                                    const gchar * label1,
    49                                    const gchar * label2,
    50                                    const gchar * label3);
    51 void            mmyth_uicommon_free(MMythUiCommon * ui_common);
    52 
    53 #endif                          /* MMYTH_UICOMMON_H_ */