mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
2a05485d72
commit
51572ab087
1 changed files with 4 additions and 0 deletions
4
ui/gtk.c
4
ui/gtk.c
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue