[Spice-devel] [client v2 03/10] spicy: Avoid gtk_hbutton_box_new(); it is deprecated

Jonathon Jongsma jjongsma at redhat.com
Thu Oct 20 20:51:28 UTC 2016


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>


On Wed, 2016-10-19 at 18:06 +0200, Francois Gouget wrote:
> 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);


More information about the Spice-devel mailing list