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

@@ -22,10 +22,9 @@
#include <gtkmm.h>
#include <giomm.h>
#include "dirbrowserremoteinterface.h"
#include "dirselectionlistener.h"
#include "multilangmgr.h"
class PlacesBrowser : public Gtk::VBox, public DirSelectionListener
class PlacesBrowser : public Gtk::VBox
{
class PlacesColumns : public Gtk::TreeModel::ColumnRecord
@@ -63,7 +62,7 @@ public:
{
listener = l;
}
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile = "");
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile);
void refreshPlacesList ();
void mountChanged (const Glib::RefPtr<Gio::Mount>& m);