diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:14:25 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:14:25 +0800 |
commit | 92ec476392f168cf18bdff1cf9fd5cd6e1cacac4 (patch) | |
tree | aeaa721b0c0bfddb757ed379120545f3332832e6 /libempathy-gtk/empathy-ui-utils.c | |
parent | 42acf790dc4261af4c2fec3fee7e3b7a741d2c21 (diff) | |
download | gsoc2013-empathy-92ec476392f168cf18bdff1cf9fd5cd6e1cacac4.tar gsoc2013-empathy-92ec476392f168cf18bdff1cf9fd5cd6e1cacac4.tar.gz gsoc2013-empathy-92ec476392f168cf18bdff1cf9fd5cd6e1cacac4.tar.bz2 gsoc2013-empathy-92ec476392f168cf18bdff1cf9fd5cd6e1cacac4.tar.lz gsoc2013-empathy-92ec476392f168cf18bdff1cf9fd5cd6e1cacac4.tar.xz gsoc2013-empathy-92ec476392f168cf18bdff1cf9fd5cd6e1cacac4.tar.zst gsoc2013-empathy-92ec476392f168cf18bdff1cf9fd5cd6e1cacac4.zip |
Added empathy_send_file_with_file_chooser_and_manager to make use of the file transfer manager. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1747 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 14 |
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 ()); +} |