aboutsummaryrefslogtreecommitdiff
path: root/example/messagedialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/messagedialog.c')
-rw-r--r--example/messagedialog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/messagedialog.c b/example/messagedialog.c
index bc24aff..4ba866b 100644
--- a/example/messagedialog.c
+++ b/example/messagedialog.c
@@ -1,6 +1,7 @@
#include <gtk/gtk.h>
#include "idomessagedialog.h"
+#include "config.h"
static void
response_cb (GtkDialog *dialog,
@@ -40,7 +41,12 @@ main (int argc, char *argv[])
gtk_window_set_title (GTK_WINDOW (window), "Message Dialogs");
g_signal_connect (window, "destroy", 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);
button = gtk_button_new_with_label ("Confirmation dialog");