[gnome-games] Show black feet for untracked data
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Show black feet for untracked data
- Date: Tue, 25 May 2010 01:20:01 +0000 (UTC)
commit 03dacf932a864a956037d762167c1a46aee6e497
Author: Robert Ancell <robert ancell gmail com>
Date: Tue May 25 11:13:32 2010 +1000
Show black feet for untracked data
gnome-sudoku/data/tracker.ui | 2 +-
gnome-sudoku/src/lib/main.py | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gnome-sudoku/data/tracker.ui b/gnome-sudoku/data/tracker.ui
index 61da1fa..69c60ce 100644
--- a/gnome-sudoku/data/tracker.ui
+++ b/gnome-sudoku/data/tracker.ui
@@ -16,7 +16,7 @@
<property name="vscrollbar_policy">automatic</property>
<property name="shadow_type">in</property>
<child>
- <object class="GtkTreeView" id="treeview1">
+ <object class="GtkTreeView" id="TrackerTreeView">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">False</property>
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 1b19b97..f030e92 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -739,7 +739,7 @@ class TrackerBox (gtk.VBox):
@simple_debug
def setup_tree (self):
- self.tracker_tree = self.builder.get_object('treeview1')
+ self.tracker_tree = self.builder.get_object('TrackerTreeView')
self.tracker_model = gtk.ListStore(int, gtk.gdk.Pixbuf, str)
self.tracker_model.set_sort_column_id(0, gtk.SORT_ASCENDING)
self.tracker_tree.set_model(self.tracker_model)
@@ -750,7 +750,11 @@ class TrackerBox (gtk.VBox):
self.tracker_tree.append_column(col2)
self.tracker_tree.append_column(col1)
# Our initial row...
- self.tracker_model.append([-1, None, _('Untracked')])
+ pixbuf = self.pixbuf_transform_color(
+ STOCK_PIXBUFS['tracks'],
+ (0, 0, 0)
+ )
+ self.tracker_model.append([-1, pixbuf, _('Untracked')])
self.tracker_tree.get_selection().connect('changed', self.selection_changed_cb)
@simple_debug
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]