diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-12-14 12:19:26 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-12-14 12:19:26 -0500 |
commit | 9b717e50b0890d938cd2cf6bb4ec938240740f31 (patch) | |
tree | 1c3ced03cd9ec27f3406099e33cfb6892aa7ee2e /example | |
parent | 50b234a41b70db8f4c8b15ddaf2d15beacb602d6 (diff) | |
download | ayatana-ido-9b717e50b0890d938cd2cf6bb4ec938240740f31.tar.gz ayatana-ido-9b717e50b0890d938cd2cf6bb4ec938240740f31.tar.bz2 ayatana-ido-9b717e50b0890d938cd2cf6bb4ec938240740f31.zip |
removed deprecations from gtk3 and fixed sizing issues with idemessagedialog (LP: #888392)
Diffstat (limited to 'example')
-rw-r--r-- | example/menus.c | 6 | ||||
-rw-r--r-- | example/messagedialog.c | 6 |
2 files changed, 12 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 (); 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"); |