summaryrefslogtreecommitdiffstats
path: root/gtk/src/queuehandler.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-05-20 18:44:20 +0000
committerjstebbins <[email protected]>2014-05-20 18:44:20 +0000
commit2f11d9d7920a7e3c54c38c28c0478a67f313aeb2 (patch)
treec5775d38bb64bc6f511400b77ba86b86ee920119 /gtk/src/queuehandler.c
parentec522a70a2f4e584e486b9412a86a7440c2e6b50 (diff)
LinGui: layout changes
Reduce height of presets list box. This allows room for making settings tabs wider. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6199 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r--gtk/src/queuehandler.c38
1 files changed, 4 insertions, 34 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index 60b783294..1e5243aa6 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -1815,21 +1815,6 @@ ghb_queue_buttons_grey(signal_user_data_t *ud)
gtk_tool_button_set_label(GTK_TOOL_BUTTON(widget), _("Start"));
gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(widget), _("Start Encoding"));
}
- widget = GHB_WIDGET (ud->builder, "queue_start2");
- if (show_stop)
- {
- gtk_widget_set_sensitive (widget, TRUE);
- gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(widget), "hb-stop");
- gtk_tool_button_set_label(GTK_TOOL_BUTTON(widget), _("Stop"));
- gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(widget), _("Stop Encoding"));
- }
- else
- {
- gtk_widget_set_sensitive (widget, show_start);
- gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(widget), "hb-start");
- gtk_tool_button_set_label(GTK_TOOL_BUTTON(widget), _("Start"));
- gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(widget), _("Start Encoding"));
- }
widget = GHB_WIDGET (ud->builder, "queue_pause1");
if (paused)
{
@@ -1845,21 +1830,6 @@ ghb_queue_buttons_grey(signal_user_data_t *ud)
gtk_tool_button_set_label(GTK_TOOL_BUTTON(widget), _("Pause"));
gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(widget), _("Pause Encoding"));
}
- widget = GHB_WIDGET (ud->builder, "queue_pause2");
- if (paused)
- {
- gtk_widget_set_sensitive (widget, show_stop);
- gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(widget), "hb-start");
- gtk_tool_button_set_label(GTK_TOOL_BUTTON(widget), _("Resume"));
- gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(widget), _("Resume Encoding"));
- }
- else
- {
- gtk_widget_set_sensitive (widget, show_stop);
- gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(widget), "hb-pause");
- gtk_tool_button_set_label(GTK_TOOL_BUTTON(widget), _("Pause"));
- gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(widget), _("Pause Encoding"));
- }
widget = GHB_WIDGET (ud->builder, "queue_start_menu");
if (show_stop)
@@ -2001,11 +1971,8 @@ find_pid:
"Would you like to reload them?"), unfinished);
if (ghb_message_dialog(GTK_MESSAGE_QUESTION, message, _("No"), _("Yes")))
{
- GtkWidget *widget = GHB_WIDGET (ud->builder, "queue_window");
- gtk_widget_show (widget);
- widget = GHB_WIDGET (ud->builder, "show_queue");
+ GtkWidget *widget = GHB_WIDGET(ud->builder, "show_queue");
gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(widget), TRUE);
-
ud->queue = queue;
// First get rid of any old items we don't want
for (ii = count-1; ii >= 0; ii--)
@@ -2180,6 +2147,9 @@ queue_edit_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud)
source = ghb_settings_get_string(ghb_queue_edit_settings, "source");
ghb_do_scan(ud, source, 0, FALSE);
g_free(source);
+
+ GtkWidget *widget = GHB_WIDGET(ud->builder, "show_queue");
+ gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(widget), FALSE);
}
}