[Goodies-commits] r3188 - in ristretto/trunk: . src

Stephan Arts stephan at xfce.org
Sat Sep 8 16:24:28 CEST 2007


Author: stephan
Date: 2007-09-08 14:24:28 +0000 (Sat, 08 Sep 2007)
New Revision: 3188

Modified:
   ristretto/trunk/ChangeLog
   ristretto/trunk/src/main.c
Log:
Update Changelog
place clear-code behind a timeout (now nobody notices it takes time)



Modified: ristretto/trunk/ChangeLog
===================================================================
--- ristretto/trunk/ChangeLog	2007-09-08 14:05:26 UTC (rev 3187)
+++ ristretto/trunk/ChangeLog	2007-09-08 14:24:28 UTC (rev 3188)
@@ -1,8 +1,11 @@
 2007-09-08: Release 0.0.4
+	* ristretto.desktop.in:
+	  - Add %F to the Exec field
 	* src/main.c:
 	  - Toggle thumbnail-bar visibility (Bug #3507) (Ctrl-T)
 	  - Add button to clear the recent-documents list.
 	  - Toggle slideshow when fullscreen.
+	  - Allow ristretto to open multiple files from the command-line
 	* src/picture_viewer.c:
 	  - Improve zooming functionality, using scroll-wheel 
 	    should no longer freeze the window.

Modified: ristretto/trunk/src/main.c
===================================================================
--- ristretto/trunk/src/main.c	2007-09-08 14:05:26 UTC (rev 3187)
+++ ristretto/trunk/src/main.c	2007-09-08 14:24:28 UTC (rev 3188)
@@ -60,6 +60,8 @@
 cb_rstto_open_recent(GtkRecentChooser *chooser, RsttoNavigator *);
 static void
 cb_rstto_clear_recent(GtkWidget *widget, GtkRecentManager *manager);
+static gboolean
+rstto_clear_recent(GtkRecentManager *manager);
 
 static void
 cb_rstto_help_about(GtkToolItem *item, GtkWindow *);
@@ -982,6 +984,12 @@
 static void
 cb_rstto_clear_recent(GtkWidget *widget, GtkRecentManager *manager)
 {
+    g_timeout_add(150, (GSourceFunc)rstto_clear_recent, manager);
+}
+
+static gboolean
+rstto_clear_recent(GtkRecentManager *manager)
+{
     GList *items = gtk_recent_manager_get_items(manager);
     GList *iter = items;
     while(iter)
@@ -992,4 +1000,5 @@
         }
         iter = g_list_next(iter);
     }
+    return FALSE;
 }




More information about the Goodies-commits mailing list