From fb74fb0e0dc720bde9df2813b559b94b66815a34 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 25 Jan 2011 22:05:45 +0100 Subject: 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" --- src/gui/CCMainWindow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/CCMainWindow.py') 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: -- cgit