Fix help menu text, and event name

This commit is contained in:
Daniel P. Berrange 2008-04-22 11:25:00 -04:00
parent f236e54e36
commit 2467a61a49
3 changed files with 18 additions and 10 deletions

View File

@ -220,6 +220,7 @@ class vmmEngine(gobject.GObject):
def show_help(self, index):
try:
logging.debug("Showing help for %s" % index)
gnome.help_display(self.config.get_appname(), index)
except gobject.GError, e:
logging.error(("Unable to display documentation:\n%s") % e)

View File

@ -96,7 +96,7 @@ class vmmHost(gobject.GObject):
self.window.signal_autoconnect({
"on_menu_file_close_activate": self.close,
"on_vmm_host_delete_event": self.close,
"on_menu_help_about_activate": self.show_help,
"on_menu_help_contents_activate": self.show_help,
"on_net_add_clicked": self.add_network,
"on_net_delete_clicked": self.delete_network,
"on_net_stop_clicked": self.stop_network,
@ -150,11 +150,6 @@ class vmmHost(gobject.GObject):
self.conn.toggle_autoconnect()
def show_help(self, src):
# From the Details window, show the help document from the Details page
self.emit("action-show-help", "virt-manager-host-window")
def show_help(self, src):
# From the Details window, show the help document from the Details page
self.emit("action-show-help", "virt-manager-host-window")
def close(self,ignore1=None,ignore2=None):

View File

@ -67,11 +67,23 @@
<widget class="GtkMenu" id="help1_menu">
<child>
<widget class="GtkImageMenuItem" id="menu-help-about">
<widget class="GtkImageMenuItem" id="menu_help_contents">
<property name="visible">True</property>
<property name="label">gtk-about</property>
<property name="use_stock">True</property>
<signal name="activate" handler="on_menu_help_about_activate" last_modification_time="Tue, 27 Mar 2007 20:48:32 GMT"/>
<property name="label" translatable="yes">_Contents</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_menu_help_contents_activate" last_modification_time="Tue, 27 Mar 2007 20:48:32 GMT"/>
<child internal-child="image">
<widget class="GtkImage" id="image3">
<property name="visible">True</property>
<property name="stock">gtk-help</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
</child>
</widget>