diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-02-25 15:20:38 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-26 13:29:51 -0600 |
commit | 51572ab087b900ea67cc25f1c49dae4112274221 (patch) | |
tree | a421a549372f0c3b56c12c44b8aa1dfb9a9d90ce /ui/gtk.c | |
parent | 2a05485d72504ed92ce91dffd1f5867974c47ff0 (diff) | |
download | qemu-51572ab087b900ea67cc25f1c49dae4112274221.tar.gz qemu-51572ab087b900ea67cc25f1c49dae4112274221.tar.bz2 qemu-51572ab087b900ea67cc25f1c49dae4112274221.zip |
Remove use of GtkVBox in GTK3
The GtkVBox class is deprecated, in favour of just using the
GtkBox class directly. Eventually even GtkBox will be
deprecated in favour of GtkGrid, but that is a bigger fix
which can wait.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1361805646-6425-6-git-send-email-berrange@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/gtk.c')
-rw-r--r-- | ui/gtk.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1264,7 +1264,11 @@ void gtk_display_init(DisplayState *ds) s->dcl.dpy_refresh = gd_refresh; s->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); +#if GTK_CHECK_VERSION(3, 2, 0) + s->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); +#else s->vbox = gtk_vbox_new(FALSE, 0); +#endif s->notebook = gtk_notebook_new(); s->drawing_area = gtk_drawing_area_new(); s->menu_bar = gtk_menu_bar_new(); |