| author | renatofilho |
| Mon Dec 04 22:01:41 2006 +0000 (2006-12-04) | |
| branch | trunk |
| changeset 188 | 944deaac3f01 |
| child 754 | cb885ee44618 |
| permissions | -rw-r--r-- |
| renatofilho@20 | 1 |
#ifndef MMYTH_UICOMMON_H_ |
| renatofilho@20 | 2 |
#define MMYTH_UICOMMON_H_ |
| renatofilho@20 | 3 |
|
| renatofilho@20 | 4 |
#include "config.h" |
| renatofilho@20 | 5 |
|
| renatofilho@20 | 6 |
#include <gtk/gtk.h> |
| renatofilho@20 | 7 |
#include <glib.h> |
| renatofilho@20 | 8 |
|
| renatofilho@20 | 9 |
#ifndef MAEMO_PLATFORM |
| renatofilho@20 | 10 |
#define BUTTON_HEIGHT 50 |
| renatofilho@20 | 11 |
#define BUTTON_WIDTH 100 |
| renatofilho@20 | 12 |
#else |
| renatofilho@20 | 13 |
#define BUTTON_HEIGHT 80 |
| renatofilho@20 | 14 |
#define BUTTON_WIDTH 150 |
| renatofilho@20 | 15 |
#endif |
| renatofilho@20 | 16 |
|
| renatofilho@20 | 17 |
#define MAIN_WINDOW_WIDTH 550 |
| renatofilho@20 | 18 |
#define MAIN_WINDOW_HEIGHT 250 |
| renatofilho@20 | 19 |
|
| renatofilho@20 | 20 |
#define CHANNELS_DIALOG_WIDTH 300 |
| renatofilho@20 | 21 |
#define CHANNELS_DIALOG_HEIGHT 200 |
| renatofilho@20 | 22 |
|
| renatofilho@20 | 23 |
#define SETTINGS_DIALOG_WIDTH 300 |
| renatofilho@20 | 24 |
#define SETTINGS_DIALOG_HEIGHT 120 |
| renatofilho@20 | 25 |
|
| renatofilho@20 | 26 |
extern GdkColor main_bg_color; |
| renatofilho@20 | 27 |
|
| renatofilho@20 | 28 |
typedef struct _MMythUiCommon |
| renatofilho@20 | 29 |
{
|
| renatofilho@20 | 30 |
GtkWidget *main_widget; |
| renatofilho@20 | 31 |
|
| renatofilho@20 | 32 |
/* event box to set the background color*/ |
| renatofilho@20 | 33 |
GtkWidget *event_box; |
| renatofilho@20 | 34 |
|
| renatofilho@20 | 35 |
GtkWidget *vbox; |
| renatofilho@20 | 36 |
GtkWidget *button_vbox; |
| renatofilho@20 | 37 |
GtkWidget *label; |
| renatofilho@20 | 38 |
|
| renatofilho@20 | 39 |
GtkWidget *button1; |
| renatofilho@20 | 40 |
GtkWidget *button2; |
| renatofilho@20 | 41 |
GtkWidget *button3; |
| renatofilho@20 | 42 |
|
| renatofilho@20 | 43 |
gint source_id; |
| renatofilho@20 | 44 |
} MMythUiCommon; |
| renatofilho@20 | 45 |
|
| renatofilho@20 | 46 |
MMythUiCommon *mmyth_uicommon_new (GtkWidget * main_widget, |
| renatofilho@20 | 47 |
const gchar * label1, const gchar * label2, |
| renatofilho@20 | 48 |
const gchar * label3); |
| renatofilho@20 | 49 |
void mmyth_uicommon_free (MMythUiCommon *ui_common); |
| renatofilho@20 | 50 |
|
| renatofilho@20 | 51 |
#endif /* MMYTH_UICOMMON_H_ */ |