Replace the DirSelectionListener interface using a typedef'ed signal to increase simplicity and reduce boiler plate.

This commit is contained in:
Adam Reichold
2015-12-05 11:25:23 +01:00
parent a727460f77
commit 87016d353a
8 changed files with 23 additions and 61 deletions

View File

@@ -21,11 +21,10 @@
#include <gtkmm.h>
#include "dirbrowserremoteinterface.h"
#include "dirselectionlistener.h"
#include "multilangmgr.h"
#include "guiutils.h"
class RecentBrowser : public Gtk::VBox, public DirSelectionListener
class RecentBrowser : public Gtk::VBox
{
Gtk::ComboBoxText* recentDirs;
@@ -42,7 +41,7 @@ public:
}
void selectionChanged ();
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile = "");
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile);
};
#endif