summaryrefslogtreecommitdiff
path: root/sendto
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 12:06:39 +0200
committerraveit65 <[email protected]>2019-06-30 17:55:06 +0200
commitcf3fd47515e2950da24c0f6eb1be96a3b520fab4 (patch)
treeee67462cd5992c59a362c6c3be7083a08524f77c /sendto
parent363093d7d32d5f60f66d2ca7f9193dd684c2ccd1 (diff)
downloadcaja-extensions-cf3fd47515e2950da24c0f6eb1be96a3b520fab4.tar.bz2
caja-extensions-cf3fd47515e2950da24c0f6eb1be96a3b520fab4.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'sendto')
-rw-r--r--sendto/caja-nste.c22
-rw-r--r--sendto/caja-nste.h10
-rw-r--r--sendto/caja-sendto-command.c26
-rw-r--r--sendto/caja-sendto-module.c12
-rw-r--r--sendto/caja-sendto-plugin.h6
-rw-r--r--sendto/plugins/caja-burn/caja-burn.c14
-rw-r--r--sendto/plugins/emailclient/emailclient.c14
-rw-r--r--sendto/plugins/gajim/gajim.c54
-rw-r--r--sendto/plugins/pidgin/pidgin.c2
9 files changed, 80 insertions, 80 deletions
diff --git a/sendto/caja-nste.c b/sendto/caja-nste.c
index 9814f74..1f62ecf 100644
--- a/sendto/caja-nste.c
+++ b/sendto/caja-nste.c
@@ -1,6 +1,6 @@
/*
- * Caja-sendto
- *
+ * Caja-sendto
+ *
* Copyright (C) 2004 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
@@ -17,8 +17,8 @@
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * Author: Roberto Majadas <[email protected]>
- *
+ * Author: Roberto Majadas <[email protected]>
+ *
*/
#include <config.h>
@@ -72,7 +72,7 @@ caja_nste_get_file_items (CajaMenuProvider *provider,
return NULL;
one_item = (files != NULL) && (files->next == NULL);
- if (one_item &&
+ if (one_item &&
!caja_file_info_is_directory ((CajaFileInfo *)files->data)) {
item = caja_menu_item_new ("CajaNste::sendto",
_("Send to..."),
@@ -84,11 +84,11 @@ caja_nste_get_file_items (CajaMenuProvider *provider,
_("Send files by mail, instant message..."),
"document-send");
}
- g_signal_connect (item,
+ g_signal_connect (item,
"activate",
G_CALLBACK (sendto_callback),
provider);
- g_object_set_data_full (G_OBJECT (item),
+ g_object_set_data_full (G_OBJECT (item),
"files",
caja_file_info_list_copy (files),
(GDestroyNotify) caja_file_info_list_free);
@@ -99,14 +99,14 @@ caja_nste_get_file_items (CajaMenuProvider *provider,
}
-static void
+static void
caja_nste_menu_provider_iface_init (CajaMenuProviderIface *iface)
{
iface->get_file_items = caja_nste_get_file_items;
}
-static void
+static void
caja_nste_instance_init (CajaNste *nste)
{
}
@@ -123,7 +123,7 @@ static GType nste_type = 0;
GType
-caja_nste_get_type (void)
+caja_nste_get_type (void)
{
return nste_type;
}
@@ -137,7 +137,7 @@ caja_nste_register_type (GTypeModule *module)
(GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL,
(GClassInitFunc) caja_nste_class_init,
- NULL,
+ NULL,
NULL,
sizeof (CajaNste),
0,
diff --git a/sendto/caja-nste.h b/sendto/caja-nste.h
index 87b5222..113711c 100644
--- a/sendto/caja-nste.h
+++ b/sendto/caja-nste.h
@@ -1,7 +1,7 @@
/*
- * Caja SendTo extension
- *
- * Copyright (C) 2005 Roberto Majadas
+ * Caja SendTo extension
+ *
+ * Copyright (C) 2005 Roberto Majadas
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
@@ -17,8 +17,8 @@
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * Author: Roberto Majadas <[email protected]>
- *
+ * Author: Roberto Majadas <[email protected]>
+ *
*/
#ifndef CAJA_NSTE_H
diff --git a/sendto/caja-sendto-command.c b/sendto/caja-sendto-command.c
index ede4774..d10859a 100644
--- a/sendto/caja-sendto-command.c
+++ b/sendto/caja-sendto-command.c
@@ -1,8 +1,8 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
+/*
* Copyright (C) 2004 Roberto Majadas
- *
+ *
* 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
@@ -81,7 +81,7 @@ static const GOptionEntry entries[] = {
{ NULL }
};
-static void
+static void
destroy_dialog (GtkWidget *widget, gpointer data )
{
gtk_main_quit ();
@@ -190,9 +190,9 @@ pack_files (NS_ui *ui)
filename = gtk_entry_get_text(GTK_ENTRY(ui->pack_entry));
g_assert (filename != NULL && *filename != '\0');
-
- tmp_dir = g_strdup_printf ("%s/caja-sendto-%s",
- g_get_tmp_dir(), g_get_user_name());
+
+ tmp_dir = g_strdup_printf ("%s/caja-sendto-%s",
+ g_get_tmp_dir(), g_get_user_name());
g_mkdir (tmp_dir, 0700);
tmp_work_dir = g_strdup_printf ("%s/caja-sendto-%s/%li",
g_get_tmp_dir(), g_get_user_name(),
@@ -208,7 +208,7 @@ pack_files (NS_ui *ui)
case 1:
pack_type = g_strdup (".tar.gz");
break;
- case 2:
+ case 2:
pack_type = g_strdup (".tar.bz2");
break;
default:
@@ -449,7 +449,7 @@ set_model_for_options_combobox (NS_ui *ui)
for (aux = plugin_list; aux; aux = aux->next) {
p = (NstPlugin *) aux->data;
- pixbuf = gtk_icon_theme_load_icon (it, p->info->icon, 16,
+ pixbuf = gtk_icon_theme_load_icon (it, p->info->icon, 16,
GTK_ICON_LOOKUP_USE_BUILTIN, NULL);
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter,
@@ -470,16 +470,16 @@ set_model_for_options_combobox (NS_ui *ui)
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (ui->options_combobox),
renderer,
FALSE);
- gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (ui->options_combobox),
+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (ui->options_combobox),
renderer,
"pixbuf", COLUMN_ICON,
- NULL);
+ NULL);
renderer = gtk_cell_renderer_text_new ();
g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (ui->options_combobox),
renderer,
TRUE);
- gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (ui->options_combobox),
+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (ui->options_combobox),
renderer,
"text", COLUMN_DESCRIPTION,
NULL);
@@ -553,7 +553,7 @@ caja_sendto_create_ui (void)
ui->dialog = GTK_WIDGET (gtk_builder_get_object (app, "caja_sendto_dialog"));
ui->cancel_button = GTK_WIDGET (gtk_builder_get_object (app, "cancel_button"));
ui->send_button = GTK_WIDGET (gtk_builder_get_object (app, "send_button"));
- ui->pack_combobox = GTK_WIDGET (gtk_builder_get_object (app, "pack_combobox"));
+ ui->pack_combobox = GTK_WIDGET (gtk_builder_get_object (app, "pack_combobox"));
ui->pack_entry = GTK_WIDGET (gtk_builder_get_object (app, "pack_entry"));
ui->pack_checkbutton = GTK_WIDGET (gtk_builder_get_object (app, "pack_checkbutton"));
ui->status_box = GTK_WIDGET (gtk_builder_get_object (app, "status_box"));
@@ -574,7 +574,7 @@ caja_sendto_create_ui (void)
one_file = FALSE;
else if (file_list != NULL)
one_file = TRUE;
-
+
gtk_entry_set_text (GTK_ENTRY (ui->pack_entry), _("Files"));
if (one_file) {
diff --git a/sendto/caja-sendto-module.c b/sendto/caja-sendto-module.c
index f3746ff..b01377c 100644
--- a/sendto/caja-sendto-module.c
+++ b/sendto/caja-sendto-module.c
@@ -1,7 +1,7 @@
/*
- * Caja SendTo
- *
- * Copyright (C) 2005 Roberto Majadas
+ * Caja SendTo
+ *
+ * Copyright (C) 2005 Roberto Majadas
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
@@ -18,7 +18,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Author: Roberto Majadas <[email protected]>
- *
+ *
*/
#include <config.h>
@@ -44,12 +44,12 @@ caja_module_shutdown (void)
}
-void
+void
caja_module_list_types (const GType **types,
int *num_types)
{
static GType type_list[1];
-
+
type_list[0] = CAJA_TYPE_NSTE;
*types = type_list;
diff --git a/sendto/caja-sendto-plugin.h b/sendto/caja-sendto-plugin.h
index f208718..ed7714b 100644
--- a/sendto/caja-sendto-plugin.h
+++ b/sendto/caja-sendto-plugin.h
@@ -1,9 +1,9 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
+/*
* Copyright (C) 2004 Roberto Majadas
* Copyright (C) 2009 Bastien Nocera <[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
@@ -110,7 +110,7 @@ struct _NstPlugin
G_MODULE_EXPORT gboolean nst_init_plugin(NstPlugin *plugin) { \
plugin->info = &(plugininfo); \
return TRUE; \
- }
+ }
#endif /* _CAJA_SENDTO_PLUGIN_H_ */
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);