summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCMainWindow.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-07-28 15:23:42 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-07-28 15:23:42 +0200
commitc91bb0a0e321ed5eae01ae3e649895e7d57726eb (patch)
treec61673a9452eea0282e398390d30496cb2c8cfe8 /src/Gui/CCMainWindow.py
parent88a9c7fdaee695f15a9aeaaef177c0318896dc6a (diff)
downloadabrt-c91bb0a0e321ed5eae01ae3e649895e7d57726eb.tar.gz
abrt-c91bb0a0e321ed5eae01ae3e649895e7d57726eb.tar.xz
abrt-c91bb0a0e321ed5eae01ae3e649895e7d57726eb.zip
GUI: Added detection whether daemon is running (gui disables itself)
Diffstat (limited to 'src/Gui/CCMainWindow.py')
-rw-r--r--src/Gui/CCMainWindow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index fa01882c..9d9ff4d9 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -106,9 +106,16 @@ class MainWindow():
self.ccdaemon.connect("error", self.error_cb)
self.ccdaemon.connect("update", self.update_cb)
self.ccdaemon.connect("show", self.show_cb)
+ self.ccdaemon.connect("daemon-state-changed", self.on_daemon_state_changed_cb)
# load data
#self.load()
+ def on_daemon_state_changed_cb(self, widget, state):
+ if state == "up":
+ self.hydrate()
+ self.window.set_sensitive(True)
+ elif state == "down":
+ self.window.set_sensitive(False)
def on_miAbout_clicked(self, widget):
dialog = self.wTree.get_widget("about")