diff -r cb885ee44618 -r f9632cb3f1a0 maemo-ui-old/src/mmyth_uicommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/maemo-ui-old/src/mmyth_uicommon.h Wed Jan 23 20:09:09 2008 +0000 @@ -0,0 +1,53 @@ +#ifndef MMYTH_UICOMMON_H_ +#define MMYTH_UICOMMON_H_ + +#include "config.h" + +#include +#include + +#ifndef MAEMO_PLATFORM +#define BUTTON_HEIGHT 50 +#define BUTTON_WIDTH 100 +#else +#define BUTTON_HEIGHT 80 +#define BUTTON_WIDTH 150 +#endif + +#define MAIN_WINDOW_WIDTH 550 +#define MAIN_WINDOW_HEIGHT 250 + +#define CHANNELS_DIALOG_WIDTH 300 +#define CHANNELS_DIALOG_HEIGHT 200 + +#define SETTINGS_DIALOG_WIDTH 300 +#define SETTINGS_DIALOG_HEIGHT 120 + +extern GdkColor main_bg_color; + +typedef struct _MMythUiCommon { + GtkWidget *main_widget; + + /* + * event box to set the background color + */ + GtkWidget *event_box; + + GtkWidget *vbox; + GtkWidget *button_vbox; + GtkWidget *label; + + GtkWidget *button1; + GtkWidget *button2; + GtkWidget *button3; + + gint source_id; +} MMythUiCommon; + +MMythUiCommon *mmyth_uicommon_new(GtkWidget * main_widget, + const gchar * label1, + const gchar * label2, + const gchar * label3); +void mmyth_uicommon_free(MMythUiCommon * ui_common); + +#endif /* MMYTH_UICOMMON_H_ */