Hook up ConnectionManager tool button.

Fix preferences when applying config with no daemon.
This commit is contained in:
Andrew Resch 2007-10-24 07:22:11 +00:00
parent e03401e3aa
commit 40e1376bc4
2 changed files with 17 additions and 15 deletions

View File

@ -341,6 +341,8 @@ class Preferences(component.Component):
self.gtkui_config[key] = new_gtkui_config[key]
# Core
if client.get_core_uri() != None:
# Only do this if we're connected to a daemon
config_to_set = {}
for key in new_core_config.keys():
# The values do not match so this needs to be updated

View File

@ -53,8 +53,8 @@ class ToolBar(component.Component):
"on_toolbutton_resume_clicked": self.on_toolbutton_resume_clicked,
"on_toolbutton_preferences_clicked": \
self.on_toolbutton_preferences_clicked,
"on_toolbutton_plugins_clicked": \
self.on_toolbutton_plugins_clicked,
"on_toolbutton_connectionmanager_clicked": \
self.on_toolbutton_connectionmanager_clicked
})
def add_toolbutton(self, callback, label=None, image=None, stock=None,
@ -123,7 +123,7 @@ class ToolBar(component.Component):
# Use the menubar's callbacks
component.get("MenuBar").on_menuitem_preferences_activate(data)
def on_toolbutton_plugins_clicked(self, data):
log.debug("on_toolbutton_plugins_clicked")
def on_toolbutton_connectionmanager_clicked(self, data):
log.debug("on_toolbutton_connectionmanager_clicked")
# Use the menubar's callbacks
component.get("MenuBar").on_menuitem_preferences_activate(data)
component.get("MenuBar").on_menuitem_connectionmanager_activate(data)