diff options
author | Laurent Napias <[email protected]> | 2019-06-29 12:06:39 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-30 17:55:06 +0200 |
commit | cf3fd47515e2950da24c0f6eb1be96a3b520fab4 (patch) | |
tree | ee67462cd5992c59a362c6c3be7083a08524f77c /sendto/plugins | |
parent | 363093d7d32d5f60f66d2ca7f9193dd684c2ccd1 (diff) | |
download | caja-extensions-cf3fd47515e2950da24c0f6eb1be96a3b520fab4.tar.bz2 caja-extensions-cf3fd47515e2950da24c0f6eb1be96a3b520fab4.tar.xz |
Remove trailing whitespaces
Diffstat (limited to 'sendto/plugins')
-rw-r--r-- | sendto/plugins/caja-burn/caja-burn.c | 14 | ||||
-rw-r--r-- | sendto/plugins/emailclient/emailclient.c | 14 | ||||
-rw-r--r-- | sendto/plugins/gajim/gajim.c | 54 | ||||
-rw-r--r-- | sendto/plugins/pidgin/pidgin.c | 2 |
4 files changed, 42 insertions, 42 deletions
diff --git a/sendto/plugins/caja-burn/caja-burn.c b/sendto/plugins/caja-burn/caja-burn.c index 50dda08..9de3534 100644 --- a/sendto/plugins/caja-burn/caja-burn.c +++ b/sendto/plugins/caja-burn/caja-burn.c @@ -1,8 +1,8 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* +/* * Copyright (C) 2008 Jader Henrique da Silva - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the @@ -108,7 +108,7 @@ GtkWidget* get_contacts_widget (NstPlugin *plugin) gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), renderer, FALSE); - gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), renderer, "icon-name", COL_PIXBUF, NULL); @@ -116,7 +116,7 @@ GtkWidget* get_contacts_widget (NstPlugin *plugin) gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), renderer, TRUE); - gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), renderer, "text", COL_LABEL, NULL); @@ -162,7 +162,7 @@ gboolean send_files (NstPlugin *plugin, return TRUE; } -static +static gboolean destroy (NstPlugin *plugin){ g_object_unref (burn); @@ -171,7 +171,7 @@ gboolean destroy (NstPlugin *plugin){ } -static +static NstPluginInfo plugin_info = { "brasero", "caja-burn", @@ -183,7 +183,7 @@ NstPluginInfo plugin_info = { NULL, send_files, destroy -}; +}; NST_INIT_PLUGIN (plugin_info) diff --git a/sendto/plugins/emailclient/emailclient.c b/sendto/plugins/emailclient/emailclient.c index 14cb998..9d1e369 100644 --- a/sendto/plugins/emailclient/emailclient.c +++ b/sendto/plugins/emailclient/emailclient.c @@ -1,9 +1,9 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* +/* * Copyright (C) 2004 Roberto Majadas <[email protected]> * Copyright (C) 2012 Stefano Karapetsas <[email protected]> - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the @@ -56,7 +56,7 @@ get_evo_cmd (void) NULL}; guint i; - + for (i = 0; cmds[i] != NULL; i++) { tmp = g_find_program_in_path (cmds[i]); if (tmp != NULL) @@ -77,7 +77,7 @@ init (NstPlugin *plugin) GAppInfo *app_info = NULL; g_print ("Init email client plugin\n"); - + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); @@ -249,14 +249,14 @@ send_files (NstPlugin *plugin, return TRUE; } -static +static gboolean destroy (NstPlugin *plugin){ g_free (mail_cmd); mail_cmd = NULL; return TRUE; } -static +static NstPluginInfo plugin_info = { "emblem-mail", "emailclient", @@ -268,7 +268,7 @@ NstPluginInfo plugin_info = { NULL, send_files, destroy -}; +}; NST_INIT_PLUGIN (plugin_info) diff --git a/sendto/plugins/gajim/gajim.c b/sendto/plugins/gajim/gajim.c index 93aff8a..b0dd44f 100644 --- a/sendto/plugins/gajim/gajim.c +++ b/sendto/plugins/gajim/gajim.c @@ -48,28 +48,28 @@ static void _foreach_contact(gpointer contact, gpointer user_data) { const gchar *show; - + GValue *value; GHashTable *contact_table; - + /* holds contact props of already exisiting jid/nick */ GHashTable *existing_contact; - + /* name of the contact in completion list it may be jid, nick, jid (account), or nick(account) */ GString *contact_str; - + gchar *jid; gchar *account; gint i; - + if (contact == NULL) { g_warning("Null contact in the list"); return; } contact_table = (GHashTable *) contact; account = (gchar *) user_data; - + value = g_hash_table_lookup(contact_table, "show"); if (value == NULL || !G_VALUE_HOLDS_STRING(value)) { g_warning("String expected (contact - show)"); @@ -85,10 +85,10 @@ _foreach_contact(gpointer contact, gpointer user_data) to contact properties */ g_hash_table_insert(contact_table, "account", account); g_hash_table_remove(contact_table, "resource"); - + /* add nick the same way as jid */ for(i=0;i<2;i++) { - value = g_hash_table_lookup(contact_table, COMPLETION_PROPS[i]); + value = g_hash_table_lookup(contact_table, COMPLETION_PROPS[i]); if(value == NULL || !G_VALUE_HOLDS_STRING(value)) { g_warning("String expected (contact - name)"); return; @@ -105,7 +105,7 @@ _foreach_contact(gpointer contact, gpointer user_data) g_hash_table_insert(jid_table, contact_str->str, existing_contact); g_string_free(contact_str, FALSE); - + /* add current contact as nick (account) */ contact_str = g_string_new(jid); g_string_append(contact_str, " ("); @@ -120,7 +120,7 @@ _foreach_contact(gpointer contact, gpointer user_data) g_hash_table_insert(jid_table, jid, contact_table); } } - + } /* @@ -155,7 +155,7 @@ init_dbus (void) { g_object_unref(proxy); g_error_free(error); - return FALSE; + return FALSE; } g_strfreev(accounts); return TRUE; @@ -198,7 +198,7 @@ _get_contacts (void) gchar **accounts; gchar **account_iter; gchar *account; - + error = NULL; if (proxy == NULL) { @@ -232,7 +232,7 @@ _get_contacts (void) } for(account_iter = accounts; *account_iter ; account_iter++) { account = g_strdup(*account_iter); - error = NULL; + error = NULL; /* query gajim remote object and put results in 'contacts_list' */ if (!dbus_g_proxy_call (proxy, "list_contacts", &error, G_TYPE_STRING, account, /* call arguments */ @@ -261,7 +261,7 @@ init (NstPlugin *plugin) bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - + /* connect to gajim dbus service */ jid_table = g_hash_table_new (g_str_hash, g_str_equal); if (!init_dbus()) { @@ -276,7 +276,7 @@ _set_pixbuf_from_status (const gchar *show, GdkPixbuf **pixbuf) { GString *pixbuf_path; GError *error; - + pixbuf_path = g_string_new(GAJIM_SHARE_DIR); g_string_append_c(pixbuf_path, '/'); g_string_append(pixbuf_path, "data"); @@ -309,7 +309,7 @@ _add_contact_to_model(gpointer key, gpointer value, gpointer user_data) GValue *val; GHashTable *contact_props; const gchar *show; - + contact_props = (GHashTable *) value; pixbuf = NULL; val = g_hash_table_lookup(contact_props, "show"); @@ -320,7 +320,7 @@ _add_contact_to_model(gpointer key, gpointer value, gpointer user_data) show = g_value_get_string ((GValue *)val); _set_pixbuf_from_status(show, &pixbuf); } - + store = (GtkListStore *) user_data; iter = g_malloc (sizeof(GtkTreeIter)); gtk_list_store_append (store, iter); @@ -336,7 +336,7 @@ static gboolean add_gajim_contacts_to_model (GtkListStore *store) { if(!_get_contacts()) { - return FALSE; + return FALSE; } if(g_hash_table_size(jid_table) == 0) { return FALSE; @@ -357,18 +357,18 @@ get_contacts_widget (NstPlugin *plugin) GtkListStore *store; GtkCellRenderer *renderer; GtkTreeModel *completion_model; - + entry = gtk_entry_new (); completion = gtk_entry_completion_new (); - + renderer = gtk_cell_renderer_pixbuf_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (completion), renderer, FALSE); 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); @@ -409,7 +409,7 @@ send_files (NstPlugin *plugin, GValue *value; GList *file_iter; GHashTable *contact_props; - + gchar *send_to; gchar *jid; gchar *account; @@ -429,14 +429,14 @@ send_files (NstPlugin *plugin, account = NULL; } else { - value = g_hash_table_lookup(contact_props, "jid"); + value = g_hash_table_lookup(contact_props, "jid"); if(value == NULL || !G_VALUE_HOLDS_STRING(value)) { g_warning("[Gajim] string expected (contact - jid)"); return FALSE; } - + jid = g_value_dup_string((GValue *)value); - account = g_hash_table_lookup(contact_props, "account"); + account = g_hash_table_lookup(contact_props, "account"); } } else { @@ -445,7 +445,7 @@ send_files (NstPlugin *plugin, _("Recipient is missing.")); return FALSE; } - + error= NULL; for(file_iter = file_list; file_iter != NULL; file_iter = file_iter->next) { char *uri = file_iter->data; diff --git a/sendto/plugins/pidgin/pidgin.c b/sendto/plugins/pidgin/pidgin.c index 3189c71..d555893 100644 --- a/sendto/plugins/pidgin/pidgin.c +++ b/sendto/plugins/pidgin/pidgin.c @@ -103,7 +103,7 @@ init (NstPlugin *plugin) DBUS_TYPE_G_INT_ARRAY, &accounts, G_TYPE_INVALID)) { g_object_unref(proxy); g_error_free(error); - return FALSE; + return FALSE; } g_array_free(accounts, TRUE); |