maemo-ui/src/mmyth_uicommon.h
branchtrunk
changeset 72 04a6aeac87b0
child 754 cb885ee44618
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/maemo-ui/src/mmyth_uicommon.h	Tue Nov 07 23:11:23 2006 +0000
     1.3 @@ -0,0 +1,51 @@
     1.4 +#ifndef MMYTH_UICOMMON_H_
     1.5 +#define MMYTH_UICOMMON_H_
     1.6 +
     1.7 +#include "config.h"
     1.8 +
     1.9 +#include <gtk/gtk.h>
    1.10 +#include <glib.h>
    1.11 +
    1.12 +#ifndef MAEMO_PLATFORM
    1.13 +#define BUTTON_HEIGHT        50
    1.14 +#define BUTTON_WIDTH        100
    1.15 +#else
    1.16 +#define BUTTON_HEIGHT       80
    1.17 +#define BUTTON_WIDTH        150
    1.18 +#endif
    1.19 +
    1.20 +#define MAIN_WINDOW_WIDTH	550
    1.21 +#define MAIN_WINDOW_HEIGHT	250
    1.22 +
    1.23 +#define CHANNELS_DIALOG_WIDTH	300
    1.24 +#define CHANNELS_DIALOG_HEIGHT	200
    1.25 +
    1.26 +#define SETTINGS_DIALOG_WIDTH	300
    1.27 +#define SETTINGS_DIALOG_HEIGHT	120
    1.28 +
    1.29 +extern GdkColor main_bg_color;
    1.30 +
    1.31 +typedef struct _MMythUiCommon
    1.32 +{
    1.33 +    GtkWidget *main_widget;
    1.34 +
    1.35 +    /* event box to set the background color*/
    1.36 +    GtkWidget *event_box;
    1.37 +    
    1.38 +    GtkWidget *vbox;
    1.39 +    GtkWidget *button_vbox;
    1.40 +    GtkWidget *label;
    1.41 +
    1.42 +    GtkWidget *button1;
    1.43 +    GtkWidget *button2;
    1.44 +    GtkWidget *button3;
    1.45 +    
    1.46 +    gint source_id;
    1.47 +} MMythUiCommon;
    1.48 +
    1.49 +MMythUiCommon *mmyth_uicommon_new (GtkWidget * main_widget,
    1.50 +                                   const gchar * label1, const gchar * label2,
    1.51 +                                   const gchar * label3);
    1.52 +void mmyth_uicommon_free (MMythUiCommon *ui_common);
    1.53 +
    1.54 +#endif /* MMYTH_UICOMMON_H_ */