aboutsummaryrefslogtreecommitdiff
path: root/voctogui/lib/toolbar
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-12-27 19:48:51 +0100
committerMaZderMind <git@mazdermind.de>2015-12-27 19:48:51 +0100
commit63ed14fbc59ea3a15539cf93fd23fb71950cd8af (patch)
tree24fe6623dacdbae5fe0899e950657647a7d668ea /voctogui/lib/toolbar
parent86ac1fd9abafeca5c97d9ef878f1810eedd7aaf4 (diff)
add close-button to toolbar
Diffstat (limited to 'voctogui/lib/toolbar')
-rw-r--r--voctogui/lib/toolbar/misc.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/voctogui/lib/toolbar/misc.py b/voctogui/lib/toolbar/misc.py
new file mode 100644
index 0000000..91ccf79
--- /dev/null
+++ b/voctogui/lib/toolbar/misc.py
@@ -0,0 +1,19 @@
+import logging
+from gi.repository import Gtk
+
+from lib.config import Config
+import lib.connection as Connection
+
+class MiscToolbarController(object):
+ """ Manages Accelerators and Clicks Misc buttons """
+
+ def __init__(self, drawing_area, win, uibuilder):
+ self.log = logging.getLogger('MiscToolbarController')
+
+ closebtn = uibuilder.find_widget_recursive(drawing_area, 'close')
+
+ closebtn.connect('clicked', self.on_btn_clicked)
+
+ def on_btn_clicked(self, btn):
+ self.log.info('close-button clicked')
+ Gtk.main_quit()