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

Submitted by Francois Gouget on Oct. 19, 2016, 4:06 p.m.

Details

Message ID a830f94b883eda91a208cbf39af3fa7fe1f99a81.1476892275.git.fgouget@free.fr
State New
Headers show
Series "Deprecation warning cleanup" ( rev: 4 3 2 ) in Spice

Not browsing as part of any series.

Commit Message

Francois Gouget Oct. 19, 2016, 4:06 p.m.
Spice-Gtk requires GTK+ > 3.12 which has gtk_button_box_new().

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
---
 src/spicy-connect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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);

Comments

Acked-by: Jonathon Jongsma <jjongsma@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@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);