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

Marc-André Lureau mlureau at redhat.com
Tue Oct 18 18:03:54 UTC 2016


same remark regarding "spicy:" title prefix

----- Original Message -----
> Spice-Gtk requires GTK+ > 3.12 which has gtk_button_box_new().
> 
> Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
> ---
>  src/spicy-connect.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/spicy-connect.c b/src/spicy-connect.c
> index a1d895a..915eb06 100644
> --- a/src/spicy-connect.c
> +++ b/src/spicy-connect.c
> @@ -189,7 +189,7 @@ gboolean spicy_connect_dialog(SpiceSession *session)
>      gtk_box_pack_start(recent_box, label, FALSE, TRUE, 0);
>      gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
>  
> -    button_box = GTK_BOX(gtk_hbutton_box_new());
> +    button_box = GTK_BOX(gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL));
>      gtk_button_box_set_layout(GTK_BUTTON_BOX(button_box),
>      GTK_BUTTONBOX_END);
>      gtk_box_set_spacing(button_box, 5);
>      gtk_container_set_border_width(GTK_CONTAINER(button_box), 5);
> --
> 2.9.3

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