gtk+ r17281 - in trunk: . gtk tests
- From: ebassi svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r17281 - in trunk: . gtk tests
- Date: Fri,  9 Feb 2007 14:24:19 +0000 (GMT)
Author: ebassi
Date: 2007-02-09 14:24:19 +0000 (Fri, 09 Feb 2007)
New Revision: 17281
ViewCVS link: http://svn.gnome.org/viewcvs/gtk+?rev=17281&view=rev
Modified:
   trunk/ChangeLog
   trunk/gtk/gtkrecentchoosermenu.c
   trunk/tests/testrecentchoosermenu.c
Log:
2007-02-09  Emmanuele Bassi  <ebassi gnome org>
	* gtk/gtkrecentchoosermenu.c: Add support for both prepending
	and appending custom menu items.
	(gtk_recent_chooser_menu_constructor): Add a placeholder menu
	item for the empty menu case, and for giving us a starting
	point for the recent items populating process.
	(gtk_recent_chooser_menu_insert_item),
	(gtk_recent_chooser_menu_dispose_items): Insert an item at
	the position following the placeholder (and find that position
	if needed).
	(idle_populate_func), (idle_populate_clean_up): Show the
	placeholder menu item, instead of creating one each time.
	(gtk_recent_chooser_menu_populate): Kill some indirections
	and hide the placeholder before populating the menu.
	(set_recent_manager): Remember to remove the idle population
	source if the manager changes.
	* tests/testrecentchoosermenu.c: Test the appending and
	prepending of the menu items to the recent chooser menu
	widget.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]