diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-17 11:48:18 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-17 11:48:18 +0200 |
commit | 19329569c399e944d24d293c5ee90c945ed482a1 (patch) | |
tree | ed90a82a85a36e614b397a784bda46b91cb7a6e3 /src/Gui/SettingsDialog.py | |
parent | 3c226c987f5015e8184bfc4293ee9f9b2f7b8f67 (diff) | |
download | abrt-19329569c399e944d24d293c5ee90c945ed482a1.tar.gz abrt-19329569c399e944d24d293c5ee90c945ed482a1.tar.xz abrt-19329569c399e944d24d293c5ee90c945ed482a1.zip |
GUI now show the status window after report to let user know how did it go.
Diffstat (limited to 'src/Gui/SettingsDialog.py')
-rw-r--r-- | src/Gui/SettingsDialog.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/Gui/SettingsDialog.py b/src/Gui/SettingsDialog.py index f65eb962..2ad67d78 100644 --- a/src/Gui/SettingsDialog.py +++ b/src/Gui/SettingsDialog.py @@ -29,14 +29,14 @@ class SettingsDialog: self.pluginlist.set_model(self.modelfilter) # =============================================== columns = [None]*1 - columns[0] = gtk.TreeViewColumn('Plugins') + columns[0] = gtk.TreeViewColumn('Name') # create list for column in columns: n = self.pluginlist.append_column(column) column.cell = gtk.CellRendererText() column.pack_start(column.cell, False) - column.set_attributes(column.cell, text=(n-1)) + column.set_attributes(column.cell, markup=(n-1)) column.set_resizable(True) # toggle @@ -79,7 +79,7 @@ class SettingsDialog: print e #gui_error_message("Error while loading plugins info, please check if abrt daemon is running\n %s" % e) for entry in pluginlist: - n = self.pluginsListStore.append(["%s\n%s" % (entry.getName(), entry.Description), entry.Enabled == "yes", entry]) + n = self.pluginsListStore.append(["<b>%s</b>\n%s" % (entry.getName(), entry.Description), entry.Enabled == "yes", entry]) def dehydrate(self): # we have nothing to save, plugin's does the work @@ -109,9 +109,12 @@ class SettingsDialog: if response == gtk.RESPONSE_APPLY: ui.dehydrate() if pluginfo.Settings: - self.ccdaemon.setPluginSettings(pluginfo.getName(), pluginfo.Settings) - for key, val in pluginfo.Settings.iteritems(): - print "%s:%s" % (key, val) + try: + self.ccdaemon.setPluginSettings(pluginfo.getName(), pluginfo.Settings) + except Exception, e: + gui_error_message("Can't save plugin settings:\n %s", e) + #for key, val in pluginfo.Settings.iteritems(): + # print "%s:%s" % (key, val) elif response == gtk.RESPONSE_CANCEL: pass else: @@ -124,7 +127,7 @@ class SettingsDialog: def on_tvDumps_cursor_changed(self, treeview): pluginsListStore, path = treeview.get_selection().get_selected_rows() if not path: - self.builder.get_object("lDescription").set_label("ARGH...") + self.builder.get_object("lDescription").set_label("No description") return # this should work until we keep the row object in the last position pluginfo = pluginsListStore.get_value(pluginsListStore.get_iter(path[0]), pluginsListStore.get_n_columns()-1) |