diff options
Diffstat (limited to 'sendto/plugins/pidgin/pidgin.c')
-rw-r--r-- | sendto/plugins/pidgin/pidgin.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sendto/plugins/pidgin/pidgin.c b/sendto/plugins/pidgin/pidgin.c index 2630f41..d06fd41 100644 --- a/sendto/plugins/pidgin/pidgin.c +++ b/sendto/plugins/pidgin/pidgin.c @@ -25,8 +25,12 @@ * Author: Roberto Majadas <[email protected]> */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <glib/gi18n-lib.h> + #include <dbus/dbus.h> #include <dbus/dbus-glib.h> #include "caja-sendto-plugin.h" @@ -79,8 +83,10 @@ init (NstPlugin *plugin) g_print ("Init pidgin plugin\n"); +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ error = NULL; connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); @@ -230,22 +236,21 @@ add_pidgin_contacts_to_model (GtkTreeStore *store, g_hash_table_iter_init (&hiter, contact_hash); while (g_hash_table_iter_next (&hiter, NULL, (gpointer)&contacts_group)) { - gint accounts; + gint num_accounts; dat = g_ptr_array_index (contacts_group, 0); - accounts = contacts_group->len; + num_accounts = contacts_group->len; gtk_tree_store_append (store, parent, NULL); gtk_tree_store_set (store, parent, COL_ICON, NULL, COL_ALIAS, dat->alias, -1); - gint i; - for (i = 0; i < accounts; ++i) { + for (i = 0; i < num_accounts; ++i) { dat = g_ptr_array_index (contacts_group, i); icon = get_buddy_icon(dat->id); - if (accounts == 1) { + if (num_accounts == 1) { g_value_init(&val, GDK_TYPE_PIXBUF); g_value_set_object (&val, (gpointer)icon); gtk_tree_store_set_value (store, parent, COL_ICON, &val); @@ -385,7 +390,6 @@ gboolean send_files (NstPlugin *plugin, GtkWidget *contact_widget, ContactData *dat; GValue val = {0,}; - if (proxy == NULL) return FALSE; |