aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-ft-manager.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-05-19 01:25:41 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:53:22 +0800
commitee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703 (patch)
tree378570dec16d46b69bbbd7d15ee0da304f2788dd /src/empathy-ft-manager.c
parent45e9d9d455df7732f19e5af8c54c066965238eaa (diff)
downloadgsoc2013-empathy-ee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703.tar
gsoc2013-empathy-ee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703.tar.gz
gsoc2013-empathy-ee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703.tar.bz2
gsoc2013-empathy-ee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703.tar.lz
gsoc2013-empathy-ee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703.tar.xz
gsoc2013-empathy-ee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703.tar.zst
gsoc2013-empathy-ee4dc84a5d3a25576e9960b52dc8fa0e1e6a4703.zip
Add the received files to GtkRecentManager
Diffstat (limited to 'src/empathy-ft-manager.c')
-rw-r--r--src/empathy-ft-manager.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index dc3a1215b..155506486 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -450,8 +450,11 @@ do_real_transfer_done (EmpathyFTManager *manager,
const char *contact_name;
const char *filename;
char *first_line, *second_line, *message;
+ char *uri;
gboolean incoming;
GtkTreeRowReference *row_ref;
+ GtkRecentManager *recent_manager;
+ GFile *file;
row_ref = ft_manager_get_row_from_handler (manager, handler);
g_return_if_fail (row_ref != NULL);
@@ -484,6 +487,13 @@ do_real_transfer_done (EmpathyFTManager *manager,
g_free (first_line);
g_free (second_line);
+ recent_manager = gtk_recent_manager_get_default ();
+ file = empathy_ft_handler_get_gfile (handler);
+ uri = g_file_get_uri (file);
+
+ gtk_recent_manager_add_item (recent_manager, uri);
+
+ g_free (uri);
}
static void