summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r--plugingui/filebrowser.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index f025c25..b32b586 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -196,10 +196,10 @@ GUI::FileBrowser::FileBrowser(GUI::Widget *parent)
listbox.registerSelectHandler(changeDir, prv);
btn_sel.setText("Select");
- btn_sel.registerClickHandler(changeDir, prv);
+ CONNECT((&btn_sel), clickNotifier, this, &FileBrowser::selectButtonClicked);
btn_esc.setText("Cancel");
- btn_esc.registerClickHandler(cancel, this);
+ CONNECT((&btn_esc), clickNotifier, this, &FileBrowser::cancelButtonClicked);
changeDir(prv);
@@ -266,3 +266,13 @@ void GUI::FileBrowser::repaintEvent(GUI::RepaintEvent *e)
Painter p(this);
p.drawImageStretched(0,0, &back, width(), height());
}
+
+void GUI::FileBrowser::selectButtonClicked()
+{
+ changeDir(prv);
+}
+
+void GUI::FileBrowser::cancelButtonClicked()
+{
+ cancel(this);
+}