514 |
|
|
515 |
/* --------------------- icon/ref/name -------------------------*/ |
/* --------------------- icon/ref/name -------------------------*/ |
516 |
GtkWidget *icon = NULL; |
GtkWidget *icon = NULL; |
517 |
if(strcasestr(tb->name, "coin") != 0) |
if((strcasestr(tb->name, "coin") != 0) || |
518 |
|
(strcasestr(tb->name, "muenze") != 0) || |
519 |
|
(strcasestr(tb->name, "münze") != 0)) |
520 |
icon = icon_get_widget(ICON_TB, 1); /* coin icon */ |
icon = icon_get_widget(ICON_TB, 1); /* coin icon */ |
521 |
else |
else |
522 |
icon = icon_get_widget(ICON_TB, 0); /* tb icon */ |
icon = icon_get_widget(ICON_TB, 0); /* tb icon */ |
787 |
#endif |
#endif |
788 |
} |
} |
789 |
|
|
790 |
|
#ifdef CUSTOM_NOTEBOOK |
791 |
static void on_notebook_button_clicked(GtkWidget *button, gpointer data) { |
static void on_notebook_button_clicked(GtkWidget *button, gpointer data) { |
792 |
GtkNotebook *nb = |
GtkNotebook *nb = |
793 |
GTK_NOTEBOOK(g_object_get_data(G_OBJECT(data), "notebook")); |
GTK_NOTEBOOK(g_object_get_data(G_OBJECT(data), "notebook")); |
795 |
gint page = (gint)g_object_get_data(G_OBJECT(button), "page"); |
gint page = (gint)g_object_get_data(G_OBJECT(button), "page"); |
796 |
gtk_notebook_set_current_page(nb, page); |
gtk_notebook_set_current_page(nb, page); |
797 |
} |
} |
798 |
|
#endif |
799 |
|
|
800 |
static void notebook_append_page(GtkWidget *notebook, |
static void notebook_append_page(GtkWidget *notebook, |
801 |
GtkWidget *page, char *label) { |
GtkWidget *page, char *label) { |