Tool panel vertical scrollbar bug in Linux #3413
When the vertical scrollbar is set to hidden, one cannot scroll the toolbox vertically using the mouse scrollwheel in Linux. This patch works around the problem by forcing the scrollbar to always be visible in Linux.
This commit is contained in:
@@ -1366,10 +1366,14 @@ void Options::readFromFile (Glib::ustring fname)
|
|||||||
FileBrowserToolbarSingleRow = keyFile.get_boolean ("GUI", "FileBrowserToolbarSingleRow");
|
FileBrowserToolbarSingleRow = keyFile.get_boolean ("GUI", "FileBrowserToolbarSingleRow");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
// Cannot scroll toolbox with mousewheel when HideTPVScrollbar=true #3413
|
||||||
|
hideTPVScrollbar = false;
|
||||||
|
#else
|
||||||
if (keyFile.has_key ("GUI", "HideTPVScrollbar")) {
|
if (keyFile.has_key ("GUI", "HideTPVScrollbar")) {
|
||||||
hideTPVScrollbar = keyFile.get_boolean ("GUI", "HideTPVScrollbar");
|
hideTPVScrollbar = keyFile.get_boolean ("GUI", "HideTPVScrollbar");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (keyFile.has_key ("GUI", "UseIconNoText")) {
|
if (keyFile.has_key ("GUI", "UseIconNoText")) {
|
||||||
UseIconNoText = keyFile.get_boolean ("GUI", "UseIconNoText");
|
UseIconNoText = keyFile.get_boolean ("GUI", "UseIconNoText");
|
||||||
}
|
}
|
||||||
|
@@ -1003,6 +1003,11 @@ Gtk::Widget* Preferences::getGeneralPanel ()
|
|||||||
setExpandAlignProperties (hb4label, false, false, Gtk::ALIGN_START, Gtk::ALIGN_BASELINE);
|
setExpandAlignProperties (hb4label, false, false, Gtk::ALIGN_START, Gtk::ALIGN_BASELINE);
|
||||||
ckbHideTPVScrollbar = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_TP_VSCROLLBAR")) );
|
ckbHideTPVScrollbar = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_TP_VSCROLLBAR")) );
|
||||||
setExpandAlignProperties (ckbHideTPVScrollbar, false, false, Gtk::ALIGN_START, Gtk::ALIGN_BASELINE);
|
setExpandAlignProperties (ckbHideTPVScrollbar, false, false, Gtk::ALIGN_START, Gtk::ALIGN_BASELINE);
|
||||||
|
#ifdef __linux__
|
||||||
|
// Cannot scroll toolbox with mousewheel when HideTPVScrollbar=true #3413
|
||||||
|
ckbHideTPVScrollbar->set_active(false);
|
||||||
|
ckbHideTPVScrollbar->set_sensitive(false);
|
||||||
|
#endif
|
||||||
ckbUseIconNoText = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_TP_USEICONORTEXT")) );
|
ckbUseIconNoText = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_TP_USEICONORTEXT")) );
|
||||||
setExpandAlignProperties (ckbUseIconNoText, false, false, Gtk::ALIGN_START, Gtk::ALIGN_BASELINE);
|
setExpandAlignProperties (ckbUseIconNoText, false, false, Gtk::ALIGN_START, Gtk::ALIGN_BASELINE);
|
||||||
workflowGrid->attach_next_to (*hb4label, *ckbFileBrowserToolbarSingleRow, Gtk::POS_BOTTOM, 1, 1);
|
workflowGrid->attach_next_to (*hb4label, *ckbFileBrowserToolbarSingleRow, Gtk::POS_BOTTOM, 1, 1);
|
||||||
|
Reference in New Issue
Block a user