Use BUTTON size for all status icons

This commit is contained in:
Cole Robinson 2014-01-12 14:36:03 -05:00
parent 0b8ba7760e
commit d12c986b98
3 changed files with 8 additions and 8 deletions

View File

@ -1340,7 +1340,7 @@ class vmmDetails(vmmGObjectUI):
self.widget("overview-status-text").set_text(self.vm.run_status())
self.widget("overview-status-icon").set_from_icon_name(
self.vm.run_status_icon_name(), Gtk.IconSize.MENU)
self.vm.run_status_icon_name(), Gtk.IconSize.BUTTON)
details = self.widget("details-pages")
self.page_refresh(details.get_current_page())

View File

@ -634,7 +634,7 @@ class vmmHost(vmmGObjectUI):
self.ICON_SHUTOFF)
self.widget("net-state").set_text(state)
self.widget("net-state-icon").set_from_icon_name(icon,
Gtk.IconSize.MENU)
Gtk.IconSize.BUTTON)
self.widget("net-start").set_sensitive(not active)
self.widget("net-stop").set_sensitive(active)
@ -655,7 +655,7 @@ class vmmHost(vmmGObjectUI):
self.widget("net-device").set_text("")
self.widget("net-state").set_text(_("Inactive"))
self.widget("net-state-icon").set_from_icon_name(self.ICON_SHUTOFF,
Gtk.IconSize.MENU)
Gtk.IconSize.BUTTON)
self.widget("net-start").set_sensitive(False)
self.widget("net-stop").set_sensitive(False)
self.widget("net-delete").set_sensitive(False)
@ -904,7 +904,7 @@ class vmmHost(vmmGObjectUI):
pool.get_target_path())
self.widget("pool-state-icon").set_from_icon_name(
((active and self.ICON_RUNNING) or self.ICON_SHUTOFF),
Gtk.IconSize.MENU)
Gtk.IconSize.BUTTON)
self.widget("pool-state").set_text(
(active and _("Active")) or _("Inactive"))
self.widget("pool-autostart").set_label(
@ -944,7 +944,7 @@ class vmmHost(vmmGObjectUI):
self.widget("pool-type").set_text("")
self.widget("pool-location").set_text("")
self.widget("pool-state-icon").set_from_icon_name(self.ICON_SHUTOFF,
Gtk.IconSize.MENU)
Gtk.IconSize.BUTTON)
self.widget("pool-state").set_text(_("Inactive"))
self.widget("vol-list").get_model().clear()
self.widget("pool-autostart").set_label(_("Never"))
@ -1135,7 +1135,7 @@ class vmmHost(vmmGObjectUI):
self.widget("interface-state-icon").set_from_icon_name(
((active and self.ICON_RUNNING) or self.ICON_SHUTOFF),
Gtk.IconSize.MENU)
Gtk.IconSize.BUTTON)
self.widget("interface-state").set_text(
(active and _("Active")) or _("Inactive"))

View File

@ -305,7 +305,7 @@ class vmmSnapshotPage(vmmGObjectUI):
self.widget("snapshot-status-text").set_text(state)
if icon:
self.widget("snapshot-status-icon").set_from_icon_name(
icon, Gtk.IconSize.MENU)
icon, Gtk.IconSize.BUTTON)
uihelpers.set_grid_row_visible(self.widget("snapshot-mode"),
is_external)
@ -393,7 +393,7 @@ class vmmSnapshotPage(vmmGObjectUI):
self.widget("snapshot-new-ok").grab_focus()
self.widget("snapshot-new-status-text").set_text(self.vm.run_status())
self.widget("snapshot-new-status-icon").set_from_icon_name(
self.vm.run_status_icon_name(), Gtk.IconSize.MENU)
self.vm.run_status_icon_name(), Gtk.IconSize.BUTTON)
sn = self._get_screenshot()
uihelpers.set_grid_row_visible(