aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index a794232c9..19bc078f2 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1570,3 +1570,17 @@ empathy_send_file_with_file_chooser (EmpathyContact *contact,
gtk_widget_show (widget);
}
+static void
+add_file_to_manager (EmpathyFile *file,
+ EmpathyFTManager *ft_manager)
+{
+ empathy_ft_manager_add_file (ft_manager, file);
+}
+
+void
+empathy_send_file_with_file_chooser_and_manager (EmpathyContact *contact)
+{
+ empathy_send_file_with_file_chooser (contact,
+ (EmpathyFileChooserCallback) add_file_to_manager,
+ empathy_ft_manager_get_default ());
+}