snapshots: Make sure 'current' icon is always visible (bz 1065074)

This commit is contained in:
Cole Robinson 2014-02-14 10:20:37 -05:00
parent 88538f916d
commit e4711061c4
2 changed files with 6 additions and 3 deletions

View File

@ -324,6 +324,7 @@
<object class="GtkScrolledWindow" id="scrolledwindow7">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="snapshot-list">
@ -341,7 +342,7 @@
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
<property name="shrink">False</property>
</packing>
</child>
<child>

View File

@ -28,6 +28,7 @@ import StringIO
from gi.repository import Gdk
from gi.repository import GdkPixbuf
from gi.repository import Gtk
from gi.repository import Pango
# pylint: enable=E0611
from virtinst import DomainSnapshot
@ -122,7 +123,6 @@ class vmmSnapshotPage(vmmGObjectUI):
col = Gtk.TreeViewColumn("")
col.set_min_width(150)
col.set_expand(True)
col.set_spacing(6)
img = Gtk.CellRendererPixbuf()
@ -131,13 +131,15 @@ class vmmSnapshotPage(vmmGObjectUI):
col.add_attribute(img, 'icon-name', 3)
txt = Gtk.CellRendererText()
txt.set_property("ellipsize", Pango.EllipsizeMode.END)
col.pack_start(txt, False)
col.add_attribute(txt, 'markup', 1)
img = Gtk.CellRendererPixbuf()
img.set_property("stock-size", Gtk.IconSize.MENU)
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)
def _sep_cb(_model, _iter, ignore):