static void
contact_file_transfer_menu_item_activate_cb (EmpathyContact *contact)
{
- empathy_send_file_with_file_chooser (contact, NULL, NULL);
+ empathy_send_file_with_file_chooser_and_manager (contact);
}
GtkWidget *
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 ());
+}
#include <libempathy/empathy-file.h>
#include "empathy-chat-view.h"
+#include "empathy-ft-manager.h"
G_BEGIN_DECLS
void empathy_send_file_with_file_chooser (EmpathyContact *contact,
EmpathyFileChooserCallback callback,
gpointer user_data);
+void empathy_send_file_with_file_chooser_and_manager (EmpathyContact *contact);
G_END_DECLS