diff options
author | Pavel Shlyak <[email protected]> | 2019-01-05 20:35:48 +0400 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-01-05 09:53:57 -0700 |
commit | 0c21917595e4fffa8d43da4d36ce0310a73da78f (patch) | |
tree | 871712c69064a42b1d1a1c2fc5d4cfcc5f1c8267 /gtk | |
parent | b223350766a83bc0f4dfd09a47439ba82c5cff64 (diff) |
Cleanup callbacks.c
Refer https://github.com/HandBrake/HandBrake/issues/1754 for more details
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 1ca6b66db..676366ddc 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -4510,15 +4510,7 @@ update_activity_labels(signal_user_data_t *ud, gboolean active) GtkToolButton *button; button = GTK_TOOL_BUTTON(GHB_WIDGET(ud->builder, "show_activity")); - - if (!active) - { - gtk_tool_button_set_label(button, "Activity"); - } - else - { - gtk_tool_button_set_label(button, "Activity"); - } + gtk_tool_button_set_label(button, "Activity"); } G_MODULE_EXPORT void @@ -4654,14 +4646,7 @@ update_queue_labels(signal_user_data_t *ud) active = gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(button)); pending = queue_pending_count(ud->queue); - if (!active) - { - show_hide = _("Queue"); - } - else - { - show_hide = _("Queue"); - } + show_hide = _("Queue"); if (pending > 0) { str = g_strdup_printf("%s (%d)", show_hide, pending); |