1. 23 Jul, 2007 1 commit
    • Emmanuele Bassi's avatar
      Port the GtkRecentChooser default implementation widget to the new · cb388e4d
      Emmanuele Bassi authored
      2007-07-23  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* gtk/gtkrecentchooserdefault.c: Port the GtkRecentChooser default
      	implementation widget to the new tooltips API, and make it look
      	like the GtkFileChooser widget in recent files mode (move the
      	full path from the widget to a tooltip on the row) to improve
      	consistency.
      
      	* gtk/gtkrecentchoosermenu.c: Port the GtkRecentChooserMenu widget
      	to the new tooltips API.
      
      	* tests/testrecentchooser.c:
      	* tests/testrecentchoosermenu.c: Exercise the tooltips code paths.
      
      svn path=/trunk/; revision=18526
      cb388e4d
  2. 20 Jul, 2007 1 commit
    • Matthias Clasen's avatar
      Apply a patch by Emmanuele Bassi to limit the number of shown recent · 13277b42
      Matthias Clasen authored
      2007-07-20  Matthias Clasen  <mclasen@redhat.com>
      
              Apply a patch by Emmanuele Bassi to limit the number
              of shown recent files.  (#439715)
      
              * gtk/gtksettings.c: Add a setting for the number
              of recent files to display by default.
      
              * gtk/gtkrecentchooserdefault.c:
              * gtk/gtkfilechooserdefault.c: Respect the limit.
      
              * gtk/gtkrecentmanager.c: Remove the poll timeout in
              dispose, and do not stat more often than every 5 seconds.
      
              * gtk/gtkrecentchooserutils.c:
              * gtk/gtkrecentchoosermenu.c: Cleanups
      
              * tests/testrecentchoosermenu.c: Test limits.
      
      
      svn path=/trunk/; revision=18510
      13277b42
  3. 15 Mar, 2007 1 commit
    • Emmanuele Bassi's avatar
      Move filtering of the recent files list into the shared implementation; do · 4191ec6a
      Emmanuele Bassi authored
      2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* gtk/gtkrecentchooserprivate.h:
      	* gtk/gtkrecentchooserutils.c: Move filtering of the recent
      	files list into the shared implementation; do the filtering
      	before the sorting, so that we always clamp on the desired
      	size. (#418219)
      
      	* gtk/gtkrecentchoosermenu.c: Remove the filtering of the
      	list, as it's already been done.
      
      	* gtk/gtkrecentchooserdefault.c: Ditto; also remove the
      	GtkTreeModelFilter: just reload the view if the sorting and
      	filtering properties change.
      
      	* gtk/testrecentchoosermenu.c: Exercise the limit property.
      
      svn path=/trunk/; revision=17516
      4191ec6a
  4. 09 Feb, 2007 1 commit
    • Emmanuele Bassi's avatar
      Add support for both prepending and appending custom menu items. · 4a559d6e
      Emmanuele Bassi authored
      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.
      
      svn path=/trunk/; revision=17281
      4a559d6e
  5. 08 Feb, 2007 1 commit
    • Emmanuele Bassi's avatar
      Keep count of the displayed items to build the menu items mnemonic instead · ada17822
      Emmanuele Bassi authored
      2007-02-08  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* gtk/gtkrecentchoosermenu.c (idle_populate_func): Keep count
      	of the displayed items to build the menu items mnemonic instead
      	of the overall item count. (#377164)
      
      	(idle_populate_clean_up): Append a menu item if all the items
      	got filtered in the idle populate function. (#405696)
      
      svn path=/trunk/; revision=17277
      ada17822