manager: Only use one toolbar at the top of the window.

This commit is contained in:
Cole Robinson 2009-11-10 12:57:28 -05:00
parent b7b7eecd43
commit 76df6b2fbb
2 changed files with 80 additions and 85 deletions

View File

@ -199,9 +199,9 @@ class vmmManager(gobject.GObject):
self.reboot_vm, self.reboot_vm,
self.destroy_vm) self.destroy_vm)
tool2 = self.window.get_widget("vm-toolbar2") tool = self.window.get_widget("vm-toolbar")
tool2.set_property("icon-size", gtk.ICON_SIZE_LARGE_TOOLBAR) tool.set_property("icon-size", gtk.ICON_SIZE_LARGE_TOOLBAR)
for c in tool2.get_children(): for c in tool.get_children():
c.set_homogeneous(False) c.set_homogeneous(False)
icon_name = self.config.get_shutdown_icon_name() icon_name = self.config.get_shutdown_icon_name()

View File

@ -243,94 +243,89 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<widget class="GtkHBox" id="hbox1"> <widget class="GtkToolbar" id="vm-toolbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="show_arrow">False</property>
<child> <child>
<widget class="GtkToolbar" id="vm-toolbar1"> <widget class="GtkToolButton" id="vm-new">
<property name="visible">True</property> <property name="visible">True</property>
<property name="show_arrow">False</property> <property name="has_tooltip">True</property>
<child> <property name="tooltip" translatable="yes">Create a new virtual machine</property>
<widget class="GtkToolButton" id="vm-new"> <property name="label" translatable="yes">New</property>
<property name="visible">True</property> <property name="use_underline">True</property>
<property name="tooltip" translatable="yes">Create a new virtual machine</property> <property name="icon_name">vm_new_large</property>
<property name="label" translatable="yes">_New</property> <signal name="clicked" handler="on_vm_new_clicked"/>
<property name="use_underline">True</property> </widget>
<property name="icon_name">vm_new_large</property> <packing>
<signal name="clicked" handler="on_vm_new_clicked"/> <property name="expand">False</property>
</widget> <property name="homogeneous">True</property>
<packing> </packing>
<property name="expand">False</property> </child>
<property name="homogeneous">True</property> <child>
</packing> <widget class="GtkSeparatorToolItem" id="toolbutton1">
</child> <property name="visible">True</property>
</widget> </widget>
<packing> <packing>
<property name="position">0</property> <property name="expand">False</property>
</packing> <property name="homogeneous">True</property>
</child> </packing>
<child> </child>
<widget class="GtkToolbar" id="vm-toolbar2"> <child>
<property name="visible">True</property> <widget class="GtkToolButton" id="vm-open">
<property name="show_arrow">False</property> <property name="visible">True</property>
<child> <property name="has_tooltip">True</property>
<widget class="GtkToolButton" id="vm-open"> <property name="tooltip" translatable="yes">Show the virtual machine's details</property>
<property name="visible">True</property> <property name="label" translatable="yes">_Open</property>
<property name="tooltip" translatable="yes">Show the virtual machine's details</property> <property name="use_underline">True</property>
<property name="label" translatable="yes">_Open</property> <property name="icon_name">icon_console</property>
<property name="use_underline">True</property> <signal name="clicked" handler="on_vm_open_clicked"/>
<property name="icon_name">icon_console</property> </widget>
<signal name="clicked" handler="on_vm_open_clicked"/> <packing>
</widget> <property name="expand">False</property>
<packing> <property name="homogeneous">True</property>
<property name="expand">False</property> </packing>
<property name="homogeneous">True</property> </child>
</packing> <child>
</child> <widget class="GtkToolButton" id="vm-run">
<child> <property name="visible">True</property>
<widget class="GtkToolButton" id="vm-run"> <property name="has_tooltip">True</property>
<property name="visible">True</property> <property name="tooltip" translatable="yes">Power on the virtual machine</property>
<property name="tooltip" translatable="yes">Power on the virtual machine</property> <property name="label" translatable="yes">_Run</property>
<property name="label" translatable="yes">_Run</property> <property name="use_underline">True</property>
<property name="use_underline">True</property> <property name="stock_id">gtk-media-play</property>
<property name="stock_id">gtk-media-play</property> <signal name="clicked" handler="on_vm_run_clicked"/>
<signal name="clicked" handler="on_vm_run_clicked"/> </widget>
</widget> <packing>
<packing> <property name="expand">False</property>
<property name="expand">False</property> <property name="homogeneous">True</property>
<property name="homogeneous">True</property> </packing>
</packing> </child>
</child> <child>
<child> <widget class="GtkToggleToolButton" id="vm-pause">
<widget class="GtkToggleToolButton" id="vm-pause"> <property name="visible">True</property>
<property name="visible">True</property> <property name="has_tooltip">True</property>
<property name="tooltip" translatable="yes">Pause the virtual machine</property> <property name="tooltip" translatable="yes">Pause the virtual machine</property>
<property name="label" translatable="yes">_Pause</property> <property name="label" translatable="yes">_Pause</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-media-pause</property> <property name="stock_id">gtk-media-pause</property>
<signal name="clicked" handler="on_vm_pause_clicked"/> <signal name="clicked" handler="on_vm_pause_clicked"/>
</widget> </widget>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="homogeneous">True</property> <property name="homogeneous">True</property>
</packing> </packing>
</child> </child>
<child> <child>
<widget class="GtkMenuToolButton" id="vm-shutdown"> <widget class="GtkMenuToolButton" id="vm-shutdown">
<property name="visible">True</property> <property name="visible">True</property>
<property name="tooltip" translatable="yes">Shutdown the virtual machine</property> <property name="has_tooltip">True</property>
<property name="label" translatable="yes">_Shutdown</property> <property name="tooltip" translatable="yes">Shutdown the virtual machine</property>
<property name="use_underline">True</property> <property name="label" translatable="yes">_Shutdown</property>
<signal name="clicked" handler="on_vm_shutdown_clicked"/> <property name="use_underline">True</property>
</widget> <signal name="clicked" handler="on_vm_shutdown_clicked"/>
<packing>
<property name="expand">False</property>
</packing>
</child>
</widget> </widget>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing> </packing>
</child> </child>
</widget> </widget>