SF.net SVN: geany: [1943] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Sat Oct 13 10:41:39 UTC 2007
Revision: 1943
http://geany.svn.sourceforge.net/geany/?rev=1943&view=rev
Author: eht16
Date: 2007-10-13 03:41:38 -0700 (Sat, 13 Oct 2007)
Log Message:
-----------
Add recent files also to GTK's recent files buffer.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/ui_utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-10-13 09:35:34 UTC (rev 1942)
+++ trunk/ChangeLog 2007-10-13 10:41:38 UTC (rev 1943)
@@ -6,6 +6,7 @@
Add option to display full path name in the open files list.
* src/callbacks.c, src/ui_utils.c:
Add menu accelerators to the custom date menu items.
+ * src/ui_utils.c: Add recent files also to GTK's recent files buffer.
2007-10-10 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c 2007-10-13 09:35:34 UTC (rev 1942)
+++ trunk/src/ui_utils.c 2007-10-13 10:41:38 UTC (rev 1943)
@@ -850,6 +850,15 @@
{
if (g_queue_find_custom(ui_prefs.recent_queue, utf8_filename, (GCompareFunc) strcmp) == NULL)
{
+#if GTK_CHECK_VERSION(2, 10, 0)
+ GtkRecentManager *manager = gtk_recent_manager_get_default();
+ gchar *uri = g_filename_to_uri(utf8_filename, NULL, NULL);
+ if (uri != NULL)
+ {
+ gtk_recent_manager_add_item(manager, uri);
+ g_free(uri);
+ }
+#endif
g_queue_push_head(ui_prefs.recent_queue, g_strdup(utf8_filename));
if (g_queue_get_length(ui_prefs.recent_queue) > prefs.mru_length)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list