mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
snapshots: Make sure 'current' icon is always visible (bz 1065074)
This commit is contained in:
parent
88538f916d
commit
e4711061c4
@ -324,6 +324,7 @@
|
|||||||
<object class="GtkScrolledWindow" id="scrolledwindow7">
|
<object class="GtkScrolledWindow" id="scrolledwindow7">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
<property name="hscrollbar_policy">never</property>
|
||||||
<property name="shadow_type">in</property>
|
<property name="shadow_type">in</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeView" id="snapshot-list">
|
<object class="GtkTreeView" id="snapshot-list">
|
||||||
@ -341,7 +342,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="resize">False</property>
|
<property name="resize">False</property>
|
||||||
<property name="shrink">True</property>
|
<property name="shrink">False</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -28,6 +28,7 @@ import StringIO
|
|||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
from gi.repository import GdkPixbuf
|
from gi.repository import GdkPixbuf
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
from gi.repository import Pango
|
||||||
# pylint: enable=E0611
|
# pylint: enable=E0611
|
||||||
|
|
||||||
from virtinst import DomainSnapshot
|
from virtinst import DomainSnapshot
|
||||||
@ -122,7 +123,6 @@ class vmmSnapshotPage(vmmGObjectUI):
|
|||||||
|
|
||||||
col = Gtk.TreeViewColumn("")
|
col = Gtk.TreeViewColumn("")
|
||||||
col.set_min_width(150)
|
col.set_min_width(150)
|
||||||
col.set_expand(True)
|
|
||||||
col.set_spacing(6)
|
col.set_spacing(6)
|
||||||
|
|
||||||
img = Gtk.CellRendererPixbuf()
|
img = Gtk.CellRendererPixbuf()
|
||||||
@ -131,13 +131,15 @@ class vmmSnapshotPage(vmmGObjectUI):
|
|||||||
col.add_attribute(img, 'icon-name', 3)
|
col.add_attribute(img, 'icon-name', 3)
|
||||||
|
|
||||||
txt = Gtk.CellRendererText()
|
txt = Gtk.CellRendererText()
|
||||||
|
txt.set_property("ellipsize", Pango.EllipsizeMode.END)
|
||||||
col.pack_start(txt, False)
|
col.pack_start(txt, False)
|
||||||
col.add_attribute(txt, 'markup', 1)
|
col.add_attribute(txt, 'markup', 1)
|
||||||
|
|
||||||
img = Gtk.CellRendererPixbuf()
|
img = Gtk.CellRendererPixbuf()
|
||||||
img.set_property("stock-size", Gtk.IconSize.MENU)
|
img.set_property("stock-size", Gtk.IconSize.MENU)
|
||||||
img.set_property("icon-name", Gtk.STOCK_APPLY)
|
img.set_property("icon-name", Gtk.STOCK_APPLY)
|
||||||
col.pack_start(img, True)
|
img.set_property("xalign", 0.0)
|
||||||
|
col.pack_start(img, False)
|
||||||
col.add_attribute(img, "visible", 5)
|
col.add_attribute(img, "visible", 5)
|
||||||
|
|
||||||
def _sep_cb(_model, _iter, ignore):
|
def _sep_cb(_model, _iter, ignore):
|
||||||
|
Loading…
Reference in New Issue
Block a user