mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 01:55:20 +03:00
Fix help menu text, and event name
This commit is contained in:
parent
f236e54e36
commit
2467a61a49
@ -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)
|
||||
|
@ -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):
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user