maemo-ui/src/mmyth_uicommon.h
author melunko
Wed Dec 06 02:06:57 2006 +0000 (2006-12-06)
branchtrunk
changeset 201 0d1244aabe17
child 754 cb885ee44618
permissions -rw-r--r--
[svn r202] gmyth_file_transfer_uri were using gmyth_uri directly to create the backend_info. Now it calls gmyth_backend_info_with_uri(str)
     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_ */