empathy r1828 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1828 - trunk/libempathy-gtk
- Date: Fri, 21 Nov 2008 16:19:34 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:19:33 2008
New Revision: 1828
URL: http://svn.gnome.org/viewvc/empathy?rev=1828&view=rev
Log:
Removed useless test to check whether a GList has items. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/libempathy-gtk/empathy-ui-utils.c
Modified: trunk/libempathy-gtk/empathy-ui-utils.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ui-utils.c (original)
+++ trunk/libempathy-gtk/empathy-ui-utils.c Fri Nov 21 16:19:33 2008
@@ -1466,46 +1466,42 @@
list = gtk_file_chooser_get_uris (GTK_FILE_CHOOSER (widget));
- if (list) {
- GSList *l;
+ GSList *l;
- DEBUG ("File chooser selected files:");
+ 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);
- }
+ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]