[maemo-commits] [maemo-commits] r16495 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Oct 27 14:51:03 EET 2008
Author: kris
Date: 2008-10-27 14:51:01 +0200 (Mon, 27 Oct 2008)
New Revision: 16495

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtktreeselection.c
Log:
2008-10-27  Kristian Rietveld  <kris at imendio.com>

	Fixes NB#89408: Unable to select an item in the list picker
	Part 3 / 3

	* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): queue
	a resize after changing selection mode, so that we re-allocate
	space that might or might not be needed for displaying the
	multiple selection tick marks.



Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2008-10-27 12:48:47 UTC (rev 16494)
+++ projects/haf/trunk/gtk+/ChangeLog	2008-10-27 12:51:01 UTC (rev 16495)
@@ -1,6 +1,16 @@
 2008-10-27  Kristian Rietveld  <kris at imendio.com>
 
 	Fixes NB#89408: Unable to select an item in the list picker
+	Part 3 / 3
+
+	* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): queue
+	a resize after changing selection mode, so that we re-allocate
+	space that might or might not be needed for displaying the
+	multiple selection tick marks.
+
+2008-10-27  Kristian Rietveld  <kris at imendio.com>
+
+	Fixes NB#89408: Unable to select an item in the list picker
 	Part 2 / 3
 
 	* gtk/gtkiconview.c (gtk_icon_view_set_selection_mode):

Modified: projects/haf/trunk/gtk+/gtk/gtktreeselection.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtktreeselection.c	2008-10-27 12:48:47 UTC (rev 16494)
+++ projects/haf/trunk/gtk+/gtk/gtktreeselection.c	2008-10-27 12:51:01 UTC (rev 16495)
@@ -295,6 +295,11 @@
 	  gtk_tree_path_free (path);
 	}
     }
+
+  /* Have the tree view resize to allocate or deallocate space for the
+   * multiple selection mode tick marks.
+   */
+  gtk_widget_queue_resize (GTK_WIDGET (selection->tree_view));
 #endif /* MAEMO_CHANGES */
 }
 


More information about the maemo-commits mailing list