diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-11-22 00:19:33 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:19:33 +0800 |
commit | 2197c25693bdfd71502c5d4f9b8d5853a78927b3 (patch) | |
tree | e244f0a8cd9a5b3ec3219191901d5cef18f0960b /libempathy-gtk | |
parent | 151ee0170eaa756327b16c4231c5cb093015ed8b (diff) | |
download | gsoc2013-empathy-2197c25693bdfd71502c5d4f9b8d5853a78927b3.tar gsoc2013-empathy-2197c25693bdfd71502c5d4f9b8d5853a78927b3.tar.gz gsoc2013-empathy-2197c25693bdfd71502c5d4f9b8d5853a78927b3.tar.bz2 gsoc2013-empathy-2197c25693bdfd71502c5d4f9b8d5853a78927b3.tar.lz gsoc2013-empathy-2197c25693bdfd71502c5d4f9b8d5853a78927b3.tar.xz gsoc2013-empathy-2197c25693bdfd71502c5d4f9b8d5853a78927b3.tar.zst gsoc2013-empathy-2197c25693bdfd71502c5d4f9b8d5853a78927b3.zip |
Removed useless test to check whether a GList has items. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1828
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 72 |
1 files changed, 34 insertions, 38 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 7fae4acf8..1e296db0b 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1466,46 +1466,42 @@ file_manager_send_file_response_cb (GtkDialog *widget, list = gtk_file_chooser_get_uris (GTK_FILE_CHOOSER (widget)); - if (list) { - GSList *l; - - DEBUG ("File chooser selected files:"); - - for (l = list; l; l = l->next) { - gchar *uri; - GFile *gfile; - EmpathyTpFile *tp_file; - GtkRecentManager *manager; - - uri = l->data; - gfile = g_file_new_for_uri (uri); - - DEBUG ("\t%s", uri); - tp_file = empathy_send_file (response_data->contact, - gfile); - if (response_data->callback) - response_data->callback (tp_file, - response_data->user_data); - - manager = gtk_recent_manager_get_default (); - gtk_recent_manager_add_item (manager, uri); - - if (tp_file) ; - /* FIXME: This should be unrefed, but - * it's not referenced anywhere else, - * so the transfer just ends. Uncomment - * this out when there is a file - * transfer "manager". - g_object_unref (file); - */ - g_object_unref (gfile); - g_free (uri); - } + GSList *l; + + DEBUG ("File chooser selected files:"); + + for (l = list; l; l = l->next) { + gchar *uri; + GFile *gfile; + EmpathyTpFile *tp_file; + GtkRecentManager *manager; + + uri = l->data; + gfile = g_file_new_for_uri (uri); + + DEBUG ("\t%s", uri); + tp_file = empathy_send_file (response_data->contact, + gfile); + if (response_data->callback) + response_data->callback (tp_file, + response_data->user_data); + + manager = gtk_recent_manager_get_default (); + gtk_recent_manager_add_item (manager, uri); + + if (tp_file) ; + /* FIXME: This should be unrefed, but + * it's not referenced anywhere else, + * so the transfer just ends. Uncomment + * this out when there is a file + * transfer "manager". + g_object_unref (file); + */ + g_object_unref (gfile); + g_free (uri); + } g_slist_free (list); - } else { - DEBUG ("File chooser had no files selected"); - } } g_object_unref (response_data->contact); |