From 7a89045498016168afa0de453118677bd32029e4 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 14 Jan 2014 18:30:33 +0000 Subject: LinGui: Fix deprecated GtkHScale Fixing this deprecation makes the LinGui incompatible with versions of gtk prior to 2.16. Too bad for you if you are using such and ancient gtk. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5970 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/ghb.ui | 24 ++++++++++++++++-------- gtk/src/settings.c | 4 ++-- 2 files changed, 18 insertions(+), 10 deletions(-) (limited to 'gtk') diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 740ab38a6..097aba065 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -1987,7 +1987,8 @@ This setting allows you to synchronize the files. True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - + + horizontal True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -2190,7 +2191,8 @@ This setting allows you to synchronize the files. - + + horizontal True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -4190,7 +4192,8 @@ This setting allows you to synchronize the files. - + + horizontal True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -4221,7 +4224,8 @@ This setting allows you to synchronize the files. - + + horizontal True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -4254,7 +4258,8 @@ This setting allows you to synchronize the files. - + + horizontal True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -7466,7 +7471,8 @@ Encoders are most effecient when the video dimensions are aligned to some specif - + + horizontal True True adjustment20 @@ -7813,7 +7819,8 @@ The classic deinterlace filter is applied to all frames. Frames that are not int True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - + + horizontal True True adjustment19 @@ -7853,7 +7860,8 @@ The classic deinterlace filter is applied to all frames. Frames that are not int - + + horizontal True preview_progress_adj False diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 34775f137..9d211797e 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -300,7 +300,7 @@ ghb_widget_value(GtkWidget *widget) ival = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget)); value = ghb_int64_value_new(ival); } - else if (type == GTK_TYPE_HSCALE) + else if (type == GTK_TYPE_SCALE) { gdouble dval; gint digits; @@ -591,7 +591,7 @@ update_widget(GtkWidget *widget, const GValue *value) g_debug("spin (%s)", str); gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget), dval); } - else if (type == GTK_TYPE_HSCALE) + else if (type == GTK_TYPE_SCALE) { g_debug("hscale"); gtk_range_set_value(GTK_RANGE(widget), dval); -- cgit v1.2.3