summaryrefslogtreecommitdiff
path: root/plugins/docinfo
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 10:29:13 +0200
committerZenWalker <[email protected]>2019-07-06 21:46:58 +0200
commitdb655f3fb2f67b695d36369e584fcb598e0e1bea (patch)
treeff7a4404cb6f0d1d8ca3a08ee50c60641641f1b4 /plugins/docinfo
parent5153fb08a2e26015d07e7b3805de15d38bd05a9d (diff)
downloadpluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.bz2
pluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'plugins/docinfo')
-rw-r--r--plugins/docinfo/pluma-docinfo-plugin.c48
-rw-r--r--plugins/docinfo/pluma-docinfo-plugin.h4
2 files changed, 26 insertions, 26 deletions
diff --git a/plugins/docinfo/pluma-docinfo-plugin.c b/plugins/docinfo/pluma-docinfo-plugin.c
index fbe1ea22..9fec4023 100644
--- a/plugins/docinfo/pluma-docinfo-plugin.c
+++ b/plugins/docinfo/pluma-docinfo-plugin.c
@@ -1,13 +1,13 @@
/*
* pluma-docinfo-plugin.c
- *
- * Copyright (C) 2002-2005 Paolo Maggi
+ *
+ * Copyright (C) 2002-2005 Paolo Maggi
*
* 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, or (at your option)
* any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -161,7 +161,7 @@ get_docinfo_dialog (PlumaDocInfoPlugin *plugin)
GTK_RESPONSE_OK);
gtk_window_set_transient_for (GTK_WINDOW (dialog->dialog),
GTK_WINDOW (window));
-
+
g_signal_connect (dialog->dialog,
"destroy",
G_CALLBACK (docinfo_dialog_destroy_cb),
@@ -175,15 +175,15 @@ get_docinfo_dialog (PlumaDocInfoPlugin *plugin)
return dialog;
}
-static void
+static void
calculate_info (PlumaDocument *doc,
GtkTextIter *start,
- GtkTextIter *end,
+ GtkTextIter *end,
gint *chars,
gint *words,
gint *white_chars,
gint *bytes)
-{
+{
gchar *text;
pluma_debug (DEBUG_PLUGINS);
@@ -313,7 +313,7 @@ selectioninfo_real (PlumaDocument *doc,
if (sel)
{
lines = gtk_text_iter_get_line (&end) - gtk_text_iter_get_line (&start) + 1;
-
+
calculate_info (doc,
&start, &end,
&chars, &words, &white_chars, &bytes);
@@ -383,15 +383,15 @@ docinfo_cb (GtkAction *action,
dialog = get_docinfo_dialog (plugin);
g_return_if_fail (dialog != NULL);
-
+
data->dialog = dialog;
gtk_widget_show (GTK_WIDGET (dialog->dialog));
}
-
- docinfo_real (doc,
- data->dialog);
- selectioninfo_real (doc,
+
+ docinfo_real (doc,
+ data->dialog);
+ selectioninfo_real (doc,
data->dialog);
}
@@ -419,18 +419,18 @@ docinfo_dialog_response_cb (GtkDialog *widget,
case GTK_RESPONSE_OK:
{
PlumaDocument *doc;
-
+
pluma_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_OK");
-
+
doc = pluma_window_get_active_document (window);
g_return_if_fail (doc != NULL);
-
+
docinfo_real (doc,
data->dialog);
selectioninfo_real (doc,
data->dialog);
-
+
break;
}
}
@@ -545,7 +545,7 @@ pluma_docinfo_plugin_activate (PeasActivatable *activatable)
PlumaDocInfoPluginPrivate *data;
PlumaWindow *window;
GtkUIManager *manager;
-
+
pluma_debug (DEBUG_PLUGINS);
plugin = PLUMA_DOCINFO_PLUGIN (activatable);
@@ -554,8 +554,8 @@ pluma_docinfo_plugin_activate (PeasActivatable *activatable)
data->dialog = NULL;
data->ui_action_group = gtk_action_group_new ("PlumaDocInfoPluginActions");
-
- gtk_action_group_set_translation_domain (data->ui_action_group,
+
+ gtk_action_group_set_translation_domain (data->ui_action_group,
GETTEXT_PACKAGE);
gtk_action_group_add_actions (data->ui_action_group,
action_entries,
@@ -569,12 +569,12 @@ pluma_docinfo_plugin_activate (PeasActivatable *activatable)
data->ui_id = gtk_ui_manager_new_merge_id (manager);
- gtk_ui_manager_add_ui (manager,
- data->ui_id,
+ gtk_ui_manager_add_ui (manager,
+ data->ui_id,
MENU_PATH,
- "DocumentStatistics",
"DocumentStatistics",
- GTK_UI_MANAGER_MENUITEM,
+ "DocumentStatistics",
+ GTK_UI_MANAGER_MENUITEM,
FALSE);
update_ui (data);
diff --git a/plugins/docinfo/pluma-docinfo-plugin.h b/plugins/docinfo/pluma-docinfo-plugin.h
index 5476e4fb..f9eaf9fc 100644
--- a/plugins/docinfo/pluma-docinfo-plugin.h
+++ b/plugins/docinfo/pluma-docinfo-plugin.h
@@ -1,7 +1,7 @@
/*
* pluma-docinfo-plugin.h
- *
- * Copyright (C) 2002-2005 Paolo Maggi
+ *
+ * Copyright (C) 2002-2005 Paolo Maggi
*
* 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