[Spice-devel] [client 03/10] gtk: Avoid gtk_vbox_new(); it is deprecated

Francois Gouget fgouget at codeweavers.com
Tue Oct 18 17:46:50 UTC 2016


Spice-Gtk requires GTK+ > 3.12 which has gtk_box_new().

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 src/spicy-connect.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/spicy-connect.c b/src/spicy-connect.c
index c471df5..a1d895a 100644
--- a/src/spicy-connect.c
+++ b/src/spicy-connect.c
@@ -156,7 +156,7 @@ gboolean spicy_connect_dialog(SpiceSession *session)
     gtk_window_set_resizable(window, FALSE);
     gtk_container_set_border_width(GTK_CONTAINER(window), 5);
 
-    main_box = GTK_BOX(gtk_vbox_new(FALSE, 0));
+    main_box = GTK_BOX(gtk_box_new(GTK_ORIENTATION_VERTICAL, 0));
     gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(main_box));
 
     table = GTK_TABLE(gtk_table_new(3, 2, 0));
@@ -181,7 +181,7 @@ gboolean spicy_connect_dialog(SpiceSession *session)
         }
     }
 
-    recent_box = GTK_BOX(gtk_vbox_new(FALSE, 0));
+    recent_box = GTK_BOX(gtk_box_new(GTK_ORIENTATION_VERTICAL, 0));
     gtk_box_pack_start(main_box, GTK_WIDGET(recent_box), TRUE, TRUE, 0);
     gtk_container_set_border_width(GTK_CONTAINER(recent_box), 5);
 
-- 
2.9.3



More information about the Spice-devel mailing list