diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-07-28 15:23:42 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-07-28 15:23:42 +0200 |
commit | c91bb0a0e321ed5eae01ae3e649895e7d57726eb (patch) | |
tree | c61673a9452eea0282e398390d30496cb2c8cfe8 /src/Gui/CCMainWindow.py | |
parent | 88a9c7fdaee695f15a9aeaaef177c0318896dc6a (diff) | |
download | abrt-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.py | 7 |
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") |