summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCMainWindow.py
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-14 23:06:00 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-14 23:06:00 +0100
commit1ff447ffaaa02cd0c46607f817c13328114145bc (patch)
treed18d75bcc77a2004f9a1b31062380e78cae647db /src/Gui/CCMainWindow.py
parentd3eb4278cc246e23b24c9a99eb0867ff6cbe0c0b (diff)
downloadabrt-1ff447ffaaa02cd0c46607f817c13328114145bc.tar.gz
abrt-1ff447ffaaa02cd0c46607f817c13328114145bc.tar.xz
abrt-1ff447ffaaa02cd0c46607f817c13328114145bc.zip
add code to make GUI -> daemon settings passing less weird. not enabled yet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Gui/CCMainWindow.py')
-rw-r--r--src/Gui/CCMainWindow.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 432fd43b..0bc00e5b 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -18,6 +18,7 @@ try:
except Exception, ex:
rpm = None
+from ConfBackend import ConfBackendGnomeKeyring, ConfBackendInitError
import CCDBusBackend
from CC_gui_functions import *
from CCDumpList import getDumpList, DumpList
@@ -42,11 +43,10 @@ class MainWindow():
sys.exit()
except Exception, e:
# show error message if connection fails
- # FIXME add an option to start the daemon
gui_error_message("%s" % e)
sys.exit()
#Set the Glade file
- self.gladefile = "%s%sccgui.glade" % (sys.path[0],"/")
+ self.gladefile = "%s/ccgui.glade" % sys.path[0]
self.wTree = gtk.glade.XML(self.gladefile)
#Get the Main Window, and connect the "destroy" event
@@ -304,6 +304,10 @@ class MainWindow():
self.pluginlist = getPluginInfoList(self.ccdaemon)
for plugin in self.pluginlist.getReporterPlugins():
reporters_settings[str(plugin)] = plugin.Settings
+ # TODO: this way, we don't need to talk to daemon in order to get
+ # all plugin settings:
+ #reporters_settings2 = ConfBackendGnomeKeyring().load_all()
+ #log1("reporters_settings2:%s", str(reporters_settings2))
self.ccdaemon.Report(result, reporters_settings)
#self.hydrate()
except Exception, e: