From 5cb6a0ebaff06891ff59f2b50b2aac846c6164a5 Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Fri, 5 Jan 2018 23:35:39 +0100 Subject: [PATCH] Use a Gtk::Frame instead of a Gtk::Label for the queue title --- rtgui/batchqueuepanel.cc | 7 +++---- rtgui/batchqueuepanel.h | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rtgui/batchqueuepanel.cc b/rtgui/batchqueuepanel.cc index ce54cd966..ae95b008f 100644 --- a/rtgui/batchqueuepanel.cc +++ b/rtgui/batchqueuepanel.cc @@ -49,8 +49,6 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr) Gtk::VBox* batchQueueButtonBox = Gtk::manage (new Gtk::VBox); batchQueueButtonBox->set_name("BatchQueueButtons"); - qLbl = Gtk::manage (new Gtk::Label(M("MAIN_FRAME_BATCHQUEUE"))); - qStartStop = Gtk::manage (new Gtk::Switch()); qStartStop->set_tooltip_markup (M("BATCHQUEUE_STARTSTOPHINT")); qStartStopConn = qStartStop->property_active().signal_changed().connect (sigc::mem_fun(*this, &BatchQueuePanel::startOrStopBatchProc)); @@ -59,9 +57,10 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr) qAutoStart->set_tooltip_text (M("BATCHQUEUE_AUTOSTARTHINT")); qAutoStart->set_active (options.procQueueEnabled); - batchQueueButtonBox->pack_start (*qLbl, Gtk::PACK_SHRINK, 4); batchQueueButtonBox->pack_start (*qStartStop, Gtk::PACK_SHRINK, 4); batchQueueButtonBox->pack_start (*qAutoStart, Gtk::PACK_SHRINK, 4); + Gtk::Frame *bbox = Gtk::manage(new Gtk::Frame(M("MAIN_FRAME_BATCHQUEUE"))); + bbox->add(*batchQueueButtonBox); // Output directory selection fdir = Gtk::manage (new Gtk::Frame (M("PREFERENCES_OUTDIR"))); @@ -134,7 +133,7 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr) pack_start (*topBox, Gtk::PACK_SHRINK); topBox->set_name("BatchQueueButtonsMainContainer"); - topBox->pack_start (*batchQueueButtonBox, Gtk::PACK_SHRINK, 4); + topBox->pack_start (*bbox, Gtk::PACK_SHRINK, 4); topBox->pack_start (*fdir, Gtk::PACK_EXPAND_WIDGET, 4); topBox->pack_start (*fformat, Gtk::PACK_EXPAND_WIDGET, 4); diff --git a/rtgui/batchqueuepanel.h b/rtgui/batchqueuepanel.h index 4d60b91ed..497bc166e 100644 --- a/rtgui/batchqueuepanel.h +++ b/rtgui/batchqueuepanel.h @@ -32,7 +32,6 @@ class BatchQueuePanel : public Gtk::VBox, public FormatChangeListener { - Gtk::Label* qLbl; Gtk::Button* zoomInButton; Gtk::Button* zoomOutButton; Gtk::Switch* qStartStop;