Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2012-09-25 19:01:08 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2012-09-25 19:01:08 (GMT)
commit5d40cc4a9207686b54d0952d6a8cfc42e84034ac (patch)
tree3e273edc708c4981a0778790fbb2f6df8bc71604
parentc800ccbbf33893806ee6ef5ff9b19e3215148316 (diff)
sdxo#2364: Do not show checkboxes in ObjectChooser.
-rw-r--r--rpms/sugar/0147-sdxo-2364-Do-not-show-checkboxes-in-ObjectChooser.patch77
1 files changed, 77 insertions, 0 deletions
diff --git a/rpms/sugar/0147-sdxo-2364-Do-not-show-checkboxes-in-ObjectChooser.patch b/rpms/sugar/0147-sdxo-2364-Do-not-show-checkboxes-in-ObjectChooser.patch
new file mode 100644
index 0000000..c263dac
--- /dev/null
+++ b/rpms/sugar/0147-sdxo-2364-Do-not-show-checkboxes-in-ObjectChooser.patch
@@ -0,0 +1,77 @@
+From ba06d75978a91acc7609c1b513dd3cb4a2c8a55f Mon Sep 17 00:00:00 2001
+From: Ajay Garg <ajay@activitycentral.com>
+Date: Wed, 26 Sep 2012 00:28:04 +0530
+Subject: [PATCH] sdxo#2364: Do not show checkboxes in ObjectChooser.
+Organization: Sugar Labs Foundation
+Signed-off-by: Ajay Garg <ajay@activitycentral.com>
+---
+ src/jarabe/journal/listview.py | 24 +++++++++++++-----------
+ src/jarabe/journal/objectchooser.py | 2 +-
+ 2 files changed, 14 insertions(+), 12 deletions(-)
+
+diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
+index 780ba0a..7e04d47 100644
+--- a/src/jarabe/journal/listview.py
++++ b/src/jarabe/journal/listview.py
+@@ -70,7 +70,8 @@ class BaseListView(gtk.Bin):
+ 'clear-clicked': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])),
+ }
+
+- def __init__(self):
++ def __init__(self, is_object_chooser):
++ self._is_object_chooser = is_object_chooser
+ self._query = {}
+ self._model = None
+ self._progress_bar = None
+@@ -148,15 +149,16 @@ class BaseListView(gtk.Bin):
+ return object_id.startswith(self._query['mountpoints'][0])
+
+ def _add_columns(self):
+- cell_select = CellRendererToggle(self.tree_view)
+- cell_select.connect('clicked', self.__cell_select_clicked_cb)
++ if not self._is_object_chooser:
++ cell_select = CellRendererToggle(self.tree_view)
++ cell_select.connect('clicked', self.__cell_select_clicked_cb)
+
+- column = gtk.TreeViewColumn()
+- column.props.sizing = gtk.TREE_VIEW_COLUMN_FIXED
+- column.props.fixed_width = cell_select.props.width
+- column.pack_start(cell_select)
+- column.set_cell_data_func(cell_select, self.__select_set_data_cb)
+- self.tree_view.append_column(column)
++ column = gtk.TreeViewColumn()
++ column.props.sizing = gtk.TREE_VIEW_COLUMN_FIXED
++ column.props.fixed_width = cell_select.props.width
++ column.pack_start(cell_select)
++ column.set_cell_data_func(cell_select, self.__select_set_data_cb)
++ self.tree_view.append_column(column)
+
+ cell_favorite = CellRendererFavorite(self.tree_view)
+ cell_favorite.connect('clicked', self.__favorite_clicked_cb)
+@@ -680,8 +682,8 @@ class ListView(BaseListView):
+ ([str, str])),
+ }
+
+- def __init__(self):
+- BaseListView.__init__(self)
++ def __init__(self, is_object_chooser=False):
++ BaseListView.__init__(self, is_object_chooser)
+ self._is_dragging = False
+
+ self.tree_view.connect('drag-begin', self.__drag_begin_cb)
+diff --git a/src/jarabe/journal/objectchooser.py b/src/jarabe/journal/objectchooser.py
+index 59df14b..f69ce3a 100644
+--- a/src/jarabe/journal/objectchooser.py
++++ b/src/jarabe/journal/objectchooser.py
+@@ -192,7 +192,7 @@ class ChooserListView(BaseListView):
+ }
+
+ def __init__(self):
+- BaseListView.__init__(self)
++ BaseListView.__init__(self, is_object_chooser=True)
+
+ self.cell_icon.props.show_palette = False
+ self.tree_view.props.hover_selection = True
+--
+1.7.4.4
+