diff options
Diffstat (limited to 'example/menus.c')
-rw-r--r-- | example/menus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/example/menus.c b/example/menus.c index d3a5f3f..b563eaf 100644 --- a/example/menus.c +++ b/example/menus.c @@ -3,6 +3,7 @@ #include "idoscalemenuitem.h" #include "idocalendarmenuitem.h" #include "idoentrymenuitem.h" +#include "config.h" static void slider_grabbed (GtkWidget *widget, gpointer user_data) @@ -37,7 +38,12 @@ main (int argc, char *argv[]) g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL); +#ifdef USE_GTK3 + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); +#else vbox = gtk_vbox_new (FALSE, 0); +#endif + gtk_container_add (GTK_CONTAINER (window), vbox); menubar = gtk_menu_bar_new (); |