]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix display of video quality over slider
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 15 May 2018 16:30:25 +0000 (09:30 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 15 May 2018 21:16:43 +0000 (14:16 -0700)
After changing video encoders, the slider value was cut off at the
right edge of the window.

(cherry picked from commit 70151214eea4fa98eedbf796a6c749d14bf4909d)

gtk/src/callbacks.c

index 1ba0ac8ad3646bdd8f5d4c9976e9afe3239ea462..55b56fa431b7b65654932684b7a97c753a486215 100644 (file)
@@ -1548,6 +1548,7 @@ ghb_scale_configure(
 
     scale = GTK_SCALE(GHB_WIDGET(ud->builder, name));
 
+    gtk_scale_set_draw_value(scale, FALSE);
     adj = gtk_range_get_adjustment(GTK_RANGE(scale));
     page_sz = gtk_adjustment_get_page_size(adj);
 
@@ -1555,6 +1556,7 @@ ghb_scale_configure(
 
     gtk_scale_set_digits(scale, digits);
     gtk_range_set_inverted(GTK_RANGE(scale), inverted);
+    gtk_scale_set_draw_value(scale, TRUE);
 }
 
 void