diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-01-25 22:05:45 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-01-25 22:05:45 +0100 |
| commit | fb74fb0e0dc720bde9df2813b559b94b66815a34 (patch) | |
| tree | 6c54eff515848643eb3c53c81adba7d55c1d6877 /src/gui/CCMainWindow.py | |
| parent | c027dbe7474890f4db63e35f6749424025f17e7f (diff) | |
fixed some gui warnings rhbz#671488
- it turned out to be caused by some unused code we had in git, so
I just removed it and find out, that I was redefining the "show"
signal from GObject, so I renamed it to "show_gui"
Diffstat (limited to 'src/gui/CCMainWindow.py')
| -rw-r--r-- | src/gui/CCMainWindow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/CCMainWindow.py b/src/gui/CCMainWindow.py index 651c8e54..9fbd95b0 100644 --- a/src/gui/CCMainWindow.py +++ b/src/gui/CCMainWindow.py @@ -21,7 +21,6 @@ import CCDBusBackend from CC_gui_functions import * from CCDumpList import getDumpList from CCDump import * # FILENAME_xxx, CD_xxx -from CCReporterDialog import ReporterDialog, ReporterSelector from CReporterAssistant import ReporterAssistant from PluginsSettingsDialog import PluginsSettingsDialog from SettingsDialog import SettingsDialog @@ -39,6 +38,7 @@ class MainWindow(): self.gladefile = "%s/ccgui.glade" % sys.path[0] self.wTree = gtk.glade.XML(self.gladefile) + #Get the Main Window, and connect the "destroy" event self.window = self.wTree.get_widget("main_window") if self.window: @@ -102,7 +102,7 @@ class MainWindow(): #self.ccdaemon.connect("update", self.update_cb) # for now, just treat them the same (w/o this, we don't even see daemon warnings in logs!): #self.ccdaemon.connect("warning", self.update_cb) - self.ccdaemon.connect("show", self.show_cb) + self.ccdaemon.connect("show_gui", self.show_cb) self.ccdaemon.connect("daemon-state-changed", self.on_daemon_state_changed_cb) self.ccdaemon.connect("report-done", self.on_report_done_cb) @@ -394,7 +394,7 @@ class MainWindow(): sys.exit() def show(self): - self.window.show() + self.window.show_all() def show_cb(self, daemon): if self.window: |
