Update preferences.cc
Save space in File browser tab
This commit is contained in:
parent
21e0186174
commit
5edf4d13a9
@ -1206,7 +1206,7 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
|
||||
startupdir = Gtk::manage ( new Gtk::Entry () );
|
||||
|
||||
Gtk::Button* sdselect = Gtk::manage ( new Gtk::Button () );
|
||||
sdselect->set_image (*Gtk::manage (new RTImage ("folder-open.png")));
|
||||
sdselect->set_image (*Gtk::manage (new RTImage ("folder-open-small.png")));
|
||||
|
||||
Gtk::RadioButton::Group opts = sdcurrent->get_group();
|
||||
sdlast->set_group (opts);
|
||||
@ -1275,20 +1275,26 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
|
||||
|
||||
|
||||
Gtk::Frame* frmnu = Gtk::manage ( new Gtk::Frame (M ("PREFERENCES_MENUOPTIONS")) );
|
||||
|
||||
Gtk::Grid* menuGrid = Gtk::manage(new Gtk::Grid());
|
||||
menuGrid->get_style_context()->add_class("grid-spacing");
|
||||
setExpandAlignProperties(menuGrid, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
|
||||
ckbmenuGroupRank = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPRANK")) );
|
||||
setExpandAlignProperties(ckbmenuGroupRank, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
ckbmenuGroupLabel = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPLABEL")) );
|
||||
ckbmenuGroupFileOperations = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPFILEOPERATIONS")) );
|
||||
setExpandAlignProperties(ckbmenuGroupFileOperations, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
ckbmenuGroupProfileOperations = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPPROFILEOPERATIONS")) );
|
||||
ckbmenuGroupExtProg = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPEXTPROGS")) );
|
||||
Gtk::VBox* vbmnu = Gtk::manage ( new Gtk::VBox () );
|
||||
|
||||
menuGrid->attach (*ckbmenuGroupRank, 0, 0, 1, 1);
|
||||
menuGrid->attach (*ckbmenuGroupLabel, 1, 0, 1, 1);
|
||||
menuGrid->attach (*ckbmenuGroupFileOperations, 0, 1, 1, 1);
|
||||
menuGrid->attach (*ckbmenuGroupProfileOperations, 1, 1, 1, 1);
|
||||
menuGrid->attach (*ckbmenuGroupExtProg, 0, 2, 2, 1);
|
||||
|
||||
vbmnu->pack_start (*ckbmenuGroupRank, Gtk::PACK_SHRINK, 0);
|
||||
vbmnu->pack_start (*ckbmenuGroupLabel, Gtk::PACK_SHRINK, 0);
|
||||
vbmnu->pack_start (*ckbmenuGroupFileOperations, Gtk::PACK_SHRINK, 0);
|
||||
vbmnu->pack_start (*ckbmenuGroupProfileOperations, Gtk::PACK_SHRINK, 0);
|
||||
vbmnu->pack_start (*ckbmenuGroupExtProg, Gtk::PACK_SHRINK, 0);
|
||||
|
||||
frmnu->add (*vbmnu);
|
||||
frmnu->add (*menuGrid);
|
||||
|
||||
|
||||
Gtk::Frame* fre = Gtk::manage ( new Gtk::Frame (M ("PREFERENCES_PARSEDEXT")) );
|
||||
@ -1360,7 +1366,8 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
|
||||
|
||||
// Separation is needed so that a button is not accidentally clicked when one wanted
|
||||
// to click a spinbox. Ideally, the separation wouldn't require attaching a widget, but how?
|
||||
Gtk::Label *separator = Gtk::manage (new Gtk::Label());
|
||||
Gtk::HSeparator *cacheSeparator = Gtk::manage (new Gtk::HSeparator());
|
||||
cacheSeparator->set_name("PrefCacheSeparator");
|
||||
|
||||
Gtk::Label* clearThumbsLbl = Gtk::manage (new Gtk::Label(M("PREFERENCES_CACHECLEAR_ALLBUTPROFILES")));
|
||||
setExpandAlignProperties(clearThumbsLbl, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
@ -1378,7 +1385,7 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
|
||||
cacheGrid->attach (*maxThumbHeightSB, 1, 0, 1, 1);
|
||||
cacheGrid->attach (*maxCacheEntriesLbl, 0, 1, 1, 1);
|
||||
cacheGrid->attach (*maxCacheEntriesSB, 1, 1, 1, 1);
|
||||
cacheGrid->attach (*separator, 0, 2, 2, 1);
|
||||
cacheGrid->attach (*cacheSeparator, 0, 2, 2, 1);
|
||||
cacheGrid->attach (*clearThumbsLbl, 0, 3, 1, 1);
|
||||
cacheGrid->attach (*clearThumbsBtn, 1, 3, 1, 1);
|
||||
if (moptions.saveParamsCache) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user