]> granicus.if.org Git - handbrake/commitdiff
Cleanup preview.c
authorPavel Shlyak <shlyak-pavel2011@ya.ru>
Sat, 5 Jan 2019 15:08:09 +0000 (19:08 +0400)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 5 Jan 2019 16:15:56 +0000 (09:15 -0700)
Refer https://github.com/HandBrake/HandBrake/issues/1754 for more details

gtk/src/preview.c

index f9bf84cfe42565244b7a5a3a21cc282d3966af2e..d7d2a4fc234fb19adbdc366892e0d5af78c7434e 100644 (file)
@@ -1104,15 +1104,7 @@ update_preview_labels(signal_user_data_t *ud, gboolean active)
     GtkToolButton *button;
 
     button   = GTK_TOOL_BUTTON(GHB_WIDGET(ud->builder, "show_preview"));
-
-    if (!active)
-    {
-        gtk_tool_button_set_label(button, "Preview");
-    }
-    else
-    {
-        gtk_tool_button_set_label(button, "Preview");
-    }
+    gtk_tool_button_set_label(button, "Preview");
 }
 
 G_MODULE_EXPORT void