aboutsummaryrefslogtreecommitdiff
path: root/parrot_zik/indicator
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--parrot_zik/indicator/base.py3
-rw-r--r--parrot_zik/indicator/linux.py3
-rw-r--r--parrot_zik/indicator/mac.py3
-rw-r--r--parrot_zik/indicator/windows.py3
4 files changed, 12 insertions, 0 deletions
diff --git a/parrot_zik/indicator/base.py b/parrot_zik/indicator/base.py
index 7101790..8204fa9 100644
--- a/parrot_zik/indicator/base.py
+++ b/parrot_zik/indicator/base.py
@@ -13,6 +13,9 @@ class BaseIndicator(object):
def show_about_dialog(self, widget):
raise NotImplementedError
+ def quit(self, _):
+ raise NotImplementedError
+
class MenuItemBase(object):
def __init__(self, base_item, sensitive, visible):
self.base_item = base_item
diff --git a/parrot_zik/indicator/linux.py b/parrot_zik/indicator/linux.py
index cbec1dd..ff06587 100644
--- a/parrot_zik/indicator/linux.py
+++ b/parrot_zik/indicator/linux.py
@@ -34,6 +34,9 @@ class LinuxIndicator(BaseIndicator):
def main(self):
gtk.main()
+ def quit(self, _):
+ gtk.main_quit()
+
def show_about_dialog(self, widget):
about_dialog = gtk.AboutDialog()
about_dialog.set_destroy_with_parent(True)
diff --git a/parrot_zik/indicator/mac.py b/parrot_zik/indicator/mac.py
index 8fdd1e6..d28ee26 100644
--- a/parrot_zik/indicator/mac.py
+++ b/parrot_zik/indicator/mac.py
@@ -27,6 +27,9 @@ class DarwinIndicator(BaseIndicator):
def show_about_dialog(self, widget):
pass
+ def quit(self, _):
+ pass
+
class NSMenu(object):
def __init__(self):
diff --git a/parrot_zik/indicator/windows.py b/parrot_zik/indicator/windows.py
index 0f81e55..118f620 100644
--- a/parrot_zik/indicator/windows.py
+++ b/parrot_zik/indicator/windows.py
@@ -33,6 +33,9 @@ class WindowsIndicator(BaseIndicator):
def main(self):
gtk.main()
+ def quit(self, _):
+ gtk.main_quit()
+
def show_about_dialog(self, widget):
about_dialog = gtk.AboutDialog()
about_dialog.set_destroy_with_parent(True)