[Spice-devel] [client 03/10] gtk: Avoid gtk_vbox_new(); it is deprecated
Marc-André Lureau
mlureau at redhat.com
Tue Oct 18 18:03:23 UTC 2016
please use "spicy:" for code touching spicy,
thanks
----- Original Message -----
> 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
looks good,
Reviewed-by: Marc-André Lureau <marcandre.lureau at redhat.com>
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list