diff options
Diffstat (limited to 'sendto/plugins/gajim/gajim.c')
-rw-r--r-- | sendto/plugins/gajim/gajim.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sendto/plugins/gajim/gajim.c b/sendto/plugins/gajim/gajim.c index cfa97f1..ffa5f91 100644 --- a/sendto/plugins/gajim/gajim.c +++ b/sendto/plugins/gajim/gajim.c @@ -22,8 +22,12 @@ * */ -#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" @@ -37,7 +41,6 @@ const gchar *COMPLETION_PROPS[] = {"name", "jid"}; static GHashTable *jid_table = NULL; static gchar *iconset; - DBusGProxy *proxy = NULL; /* @@ -259,8 +262,10 @@ init (NstPlugin *plugin) { g_print ("Init gajim plugin\n"); +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ /* connect to gajim dbus service */ jid_table = g_hash_table_new (g_str_hash, g_str_equal); @@ -270,7 +275,6 @@ init (NstPlugin *plugin) return TRUE; } - static void _set_pixbuf_from_status (const gchar *show, GdkPixbuf **pixbuf) { @@ -368,7 +372,6 @@ get_contacts_widget (NstPlugin *plugin) gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (completion), renderer, "pixbuf", 0, NULL); - store = gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING); if(!add_gajim_contacts_to_model (store)) { gtk_widget_set_sensitive(entry, FALSE); @@ -515,4 +518,3 @@ NstPluginInfo plugin_info = { }; NST_INIT_PLUGIN (plugin_info) - |