Updating branch refs/heads/master
to 0b3e4144bfb4f4693856bbf7a1bccc493ea67c42 (commit)
from 4f62ab593526b892fbc82f8215834de3eb839660 (commit)
commit 0b3e4144bfb4f4693856bbf7a1bccc493ea67c42
Author: Stephan Arts <[email protected]>
Date: Mon Apr 16 17:59:20 2012 +0200
Add opened file to recently used list
src/main_window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index 0af8470..f8f2aa3 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -2725,6 +2725,12 @@ cb_rstto_main_window_open_image (GtkWidget *widget,
RsttoMainWindow *window)
r_file,
NULL);
+ /* Add a reference to the file, it is owned by the
+ * sourcefunc and will be unref-ed by it.
+ */
+ g_object_ref (files->data);
+ g_idle_add_full(G_PRIORITY_LOW, (GSourceFunc)
rstto_main_window_add_file_to_recent_files, files->data, NULL);
+
/* Point the main iterator to the
* correct file
*/
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits