Merge master into gtk3
This commit is contained in:
@@ -44,10 +44,10 @@ using namespace std;
|
||||
FileCatalog::FileCatalog (CoarsePanel* cp, ToolBar* tb, FilePanel* filepanel) :
|
||||
filepanel(filepanel),
|
||||
selectedDirectoryId(1),
|
||||
listener(NULL),
|
||||
fslistener(NULL),
|
||||
listener(nullptr),
|
||||
fslistener(nullptr),
|
||||
hasValidCurrentEFS(false),
|
||||
filterPanel(NULL),
|
||||
filterPanel(nullptr),
|
||||
previewsToLoad(0),
|
||||
previewsLoaded(0),
|
||||
coarsePanel(cp),
|
||||
@@ -673,8 +673,8 @@ void FileCatalog::_refreshProgressBar ()
|
||||
GThreadLock lock; // All GUI acces from idle_add callbacks or separate thread HAVE to be protected
|
||||
|
||||
Gtk::Notebook *nb = (Gtk::Notebook *)(filepanel->get_parent());
|
||||
Gtk::Box* hbb = NULL;
|
||||
Gtk::Label *label = NULL;
|
||||
Gtk::Box* hbb = nullptr;
|
||||
Gtk::Label *label = nullptr;
|
||||
|
||||
if( options.mainNBVertical ) {
|
||||
hbb = Gtk::manage (new Gtk::VBox ());
|
||||
@@ -889,7 +889,7 @@ void FileCatalog::refreshHeight ()
|
||||
void FileCatalog::_openImage (std::vector<Thumbnail*> tmb)
|
||||
{
|
||||
|
||||
if (enabled && listener != NULL) {
|
||||
if (enabled && listener != nullptr) {
|
||||
bool continueToLoad = true;
|
||||
|
||||
for (size_t i = 0; i < tmb.size() && continueToLoad; i++) {
|
||||
@@ -2132,12 +2132,9 @@ void FileCatalog::tbRightPanel_1_toggled ()
|
||||
|
||||
bool FileCatalog::CheckSidePanelsVisibility()
|
||||
{
|
||||
if(tbLeftPanel_1->get_active() == false && tbRightPanel_1->get_active() == false) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
return tbLeftPanel_1->get_active() || tbRightPanel_1->get_active();
|
||||
}
|
||||
|
||||
void FileCatalog::toggleSidePanels()
|
||||
{
|
||||
// toggle left AND right panels
|
||||
@@ -2549,11 +2546,7 @@ bool FileCatalog::handleShortcutKey (GdkEventKey* event)
|
||||
}
|
||||
}
|
||||
|
||||
if (fileBrowser->keyPressed(event)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return fileBrowser->keyPressed(event);
|
||||
}
|
||||
|
||||
void FileCatalog::showToolBar()
|
||||
|
||||
Reference in New Issue
Block a user