[gedit] Remove all trailspaces in *.c and *.h files



commit c9707487447cb80c1ebcb5c2ed97ed11f1a3c907
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Mar 11 21:01:35 2013 +0100

    Remove all trailspaces in *.c and *.h files
    
    The command used:
    $ for i in *.{c,h}; do sed -i 's/[[:space:]]*$//' $i; done

 gedit/gedit-app-osx.c                           |   12 +-
 gedit/gedit-app.c                               |   26 +-
 gedit/gedit-close-confirmation-dialog.c         |   98 +++---
 gedit/gedit-close-confirmation-dialog.h         |   18 +-
 gedit/gedit-commands-file.c                     |   34 +-
 gedit/gedit-commands-search.c                   |   24 +-
 gedit/gedit-commands-view.c                     |    2 +-
 gedit/gedit-commands.h                          |   18 +-
 gedit/gedit-dirs.h                              |    4 +-
 gedit/gedit-document-input-stream.c             |    4 +-
 gedit/gedit-document-input-stream.h             |    4 +-
 gedit/gedit-document-loader.c                   |   38 +-
 gedit/gedit-document-loader.h                   |   10 +-
 gedit/gedit-document-output-stream.c            |    4 +-
 gedit/gedit-document-output-stream.h            |    2 +-
 gedit/gedit-document-saver.c                    |   36 +-
 gedit/gedit-document-saver.h                    |    6 +-
 gedit/gedit-document.c                          |  246 +++++++-------
 gedit/gedit-document.h                          |   46 ++--
 gedit/gedit-documents-panel.h                   |   16 +-
 gedit/gedit-encodings-combo-box.c               |   12 +-
 gedit/gedit-encodings-combo-box.h               |   10 +-
 gedit/gedit-encodings-dialog.c                  |   28 +-
 gedit/gedit-encodings-dialog.h                  |   16 +-
 gedit/gedit-encodings.c                         |   44 ++--
 gedit/gedit-encodings.h                         |   12 +-
 gedit/gedit-file-chooser-dialog.c               |    2 +-
 gedit/gedit-file-chooser-dialog.h               |   12 +-
 gedit/gedit-history-entry.h                     |   16 +-
 gedit/gedit-io-error-info-bar.c                 |  114 ++++----
 gedit/gedit-io-error-info-bar.h                 |   14 +-
 gedit/gedit-metadata-manager.c                  |   96 +++---
 gedit/gedit-metadata-manager.h                  |   14 +-
 gedit/gedit-multi-notebook.c                    |   14 +-
 gedit/gedit-multi-notebook.h                    |    4 +-
 gedit/gedit-notebook.c                          |   16 +-
 gedit/gedit-notebook.h                          |   16 +-
 gedit/gedit-panel.h                             |   16 +-
 gedit/gedit-plugins-engine.c                    |   16 +-
 gedit/gedit-plugins-engine.h                    |   14 +-
 gedit/gedit-preferences-dialog.c                |  120 ++++----
 gedit/gedit-preferences-dialog.h                |   18 +-
 gedit/gedit-print-job.c                         |  126 ++++----
 gedit/gedit-print-job.h                         |   22 +-
 gedit/gedit-print-preview.c                     |   40 ++--
 gedit/gedit-progress-info-bar.c                 |   34 +-
 gedit/gedit-progress-info-bar.h                 |   18 +-
 gedit/gedit-replace-dialog.c                    |   30 +-
 gedit/gedit-replace-dialog.h                    |   14 +-
 gedit/gedit-settings.c                          |  120 ++++----
 gedit/gedit-settings.h                          |    2 +-
 gedit/gedit-status-combo-box.c                  |   60 ++--
 gedit/gedit-status-combo-box.h                  |    4 +-
 gedit/gedit-statusbar.h                         |   10 +-
 gedit/gedit-tab-label.c                         |    8 +-
 gedit/gedit-tab-label.h                         |    4 +-
 gedit/gedit-tab.c                               |  374 +++++++++++-----------
 gedit/gedit-tab.h                               |   36 +-
 gedit/gedit-ui.h                                |   14 +-
 gedit/gedit-view-frame.c                        |   18 +-
 gedit/gedit-view-frame.h                        |    2 +-
 gedit/gedit-view.c                              |  112 +++---
 gedit/gedit-view.h                              |   14 +-
 gedit/gedit-window-private.h                    |   16 +-
 gedit/gedit-window.c                            |  406 +++++++++++-----------
 gedit/gedit-window.h                            |   14 +-
 gedit/gedit.c                                   |   10 +-
 gedit/gedittextregion.c                         |  118 ++++----
 gedit/gedittextregion.h                         |    6 +-
 plugins/changecase/gedit-changecase-plugin.c    |    6 +-
 plugins/changecase/gedit-changecase-plugin.h    |    2 +-
 plugins/checkupdate/gedit-check-update-plugin.c |    4 +-
 plugins/docinfo/gedit-docinfo-plugin.h          |    4 +-
 plugins/filebrowser/gedit-file-browser-plugin.c |    2 +-
 plugins/modelines/gedit-modeline-plugin.c       |    6 +-
 plugins/modelines/gedit-modeline-plugin.h       |    2 +-
 plugins/modelines/modeline-parser.c             |   78 +++---
 plugins/modelines/modeline-parser.h             |    4 +-
 plugins/sort/gedit-sort-plugin.c                |    6 +-
 plugins/sort/gedit-sort-plugin.h                |    2 +-
 plugins/spell/gedit-automatic-spell-checker.c   |  320 +++++++++---------
 plugins/spell/gedit-automatic-spell-checker.h   |   14 +-
 plugins/spell/gedit-spell-checker-dialog.c      |  150 +++++-----
 plugins/spell/gedit-spell-checker-dialog.h      |   32 +-
 plugins/spell/gedit-spell-checker-language.c    |   62 ++--
 plugins/spell/gedit-spell-checker-language.h    |   14 +-
 plugins/spell/gedit-spell-checker.c             |    2 +-
 plugins/spell/gedit-spell-language-dialog.c     |   32 +-
 plugins/spell/gedit-spell-language-dialog.h     |   16 +-
 plugins/spell/gedit-spell-osx.c                 |    2 +-
 plugins/spell/gedit-spell-plugin.c              |   44 ++--
 plugins/spell/gedit-spell-plugin.h              |    4 +-
 plugins/spell/gedit-spell-utils.c               |    2 +-
 plugins/spell/gedit-spell-utils.h               |    2 +-
 plugins/time/gedit-time-plugin.c                |    4 +-
 plugins/time/gedit-time-plugin.h                |    2 +-
 tests/document-input-stream.c                   |    2 +-
 tests/document-loader.c                         |    2 +-
 tests/document-output-stream.c                  |    2 +-
 tests/document-saver.c                          |    6 +-
 100 files changed, 1867 insertions(+), 1867 deletions(-)
---
diff --git a/gedit/gedit-app-osx.c b/gedit/gedit-app-osx.c
index 826f55a..810d1aa 100644
--- a/gedit/gedit-app-osx.c
+++ b/gedit/gedit-app-osx.c
@@ -120,7 +120,7 @@ gedit_app_osx_set_window_title_impl (GeditApp    *app,
                        g_object_unref (location);
 
                        NSURL *nsurl = [NSURL URLWithString:[NSString stringWithUTF8String:uri]];
-                       
+
                        [native setRepresentedURL:nsurl];
                        g_free (uri);
 #else
@@ -134,7 +134,7 @@ gedit_app_osx_set_window_title_impl (GeditApp    *app,
 #endif
                }
 
-               ismodified = !gedit_document_is_untouched (document); 
+               ismodified = !gedit_document_is_untouched (document);
                [native setDocumentEdited:ismodified];
        }
        else
@@ -249,7 +249,7 @@ setup_mac_menu (GeditWindow *window)
        GtkWidget *menu;
 
        manager = gedit_window_get_ui_manager (window);
-       
+
        /* Hide the menu bar */
        menu = gtk_ui_manager_get_widget (manager, "/MenuBar");
        gtk_widget_hide (menu);
@@ -390,9 +390,9 @@ on_osx_open_files (GtkOSXApplication  *osxapp,
                                             g_file_new_for_path (*paths));
                ++paths;
        }
-       
+
        locations = g_slist_reverse (locations);
-       
+
        if (locations != NULL)
        {
                GSList *files;
@@ -408,7 +408,7 @@ on_osx_open_files (GtkOSXApplication  *osxapp,
 
                g_slist_free_full (locations, g_object_unref);
        }
-       
+
        return TRUE;
 }
 
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 23b6ae0..80f66e6 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -2,7 +2,7 @@
  * gedit-app.c
  * This file is part of gedit
  *
- * Copyright (C) 2005-2006 - Paolo Maggi 
+ * Copyright (C) 2005-2006 - 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -83,7 +83,7 @@ struct _GeditAppPrivate
 
        GtkPageSetup      *page_setup;
        GtkPrintSettings  *print_settings;
-       
+
        GObject           *settings;
        GSettings         *window_settings;
 
@@ -279,7 +279,7 @@ gedit_app_show_help_impl (GeditApp    *app,
                dialog = gtk_message_dialog_new (parent,
                                                 GTK_DIALOG_DESTROY_WITH_PARENT,
                                                 GTK_MESSAGE_ERROR,
-                                                GTK_BUTTONS_CLOSE, 
+                                                GTK_BUTTONS_CLOSE,
                                                 _("There was an error displaying the help."));
 
                gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
@@ -991,7 +991,7 @@ get_page_setup_file (void)
        gchar *setup = NULL;
 
        config_dir = gedit_dirs_get_user_config_dir ();
-       
+
        if (config_dir != NULL)
        {
                setup = g_build_filename (config_dir,
@@ -1111,7 +1111,7 @@ gedit_app_constructed (GObject *object)
        load_accels ();
 }
 
-static gboolean 
+static gboolean
 window_delete_event (GeditWindow *window,
                      GdkEvent    *event,
                      GeditApp    *app)
@@ -1120,7 +1120,7 @@ window_delete_event (GeditWindow *window,
 
        ws = gedit_window_get_state (window);
 
-       if (ws & 
+       if (ws &
            (GEDIT_WINDOW_STATE_SAVING | GEDIT_WINDOW_STATE_PRINTING))
        {
                return TRUE;
@@ -1136,7 +1136,7 @@ static GeditWindow *
 gedit_app_create_window_impl (GeditApp *app)
 {
        GeditWindow *window;
-       
+
        window = g_object_new (GEDIT_TYPE_WINDOW, "application", app, NULL);
 
        gedit_debug_message (DEBUG_APP, "Window created");
@@ -1257,7 +1257,7 @@ gen_role (void)
 {
        GTimeVal result;
        static gint serial;
-       
+
        g_get_current_time (&result);
 
        return g_strdup_printf ("gedit-window-%ld-%ld-%d-%s",
diff --git a/gedit/gedit-close-confirmation-dialog.c b/gedit/gedit-close-confirmation-dialog.c
index 541e150..e20891b 100644
--- a/gedit/gedit-close-confirmation-dialog.c
+++ b/gedit/gedit-close-confirmation-dialog.c
@@ -2,7 +2,7 @@
  * gedit-close-confirmation-dialog.c
  * This file is part of gedit
  *
- * Copyright (C) 2004-2005 GNOME Foundation 
+ * Copyright (C) 2004-2005 GNOME Foundation
  *
  * 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
@@ -16,13 +16,13 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2004-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
+ * Modified by the gedit Team, 2004-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
  * See the ChangeLog files for a list of changes.
  *
  * $Id$
@@ -40,9 +40,9 @@
 #include <gedit/gedit-window.h>
 
 /* Properties */
-enum 
+enum
 {
-       PROP_0, 
+       PROP_0,
        PROP_UNSAVED_DOCUMENTS
 };
 
@@ -62,7 +62,7 @@ enum
        N_COLUMNS
 };
 
-struct _GeditCloseConfirmationDialogPrivate 
+struct _GeditCloseConfirmationDialogPrivate
 {
        GList       *unsaved_documents;
        GList       *selected_documents;
@@ -85,7 +85,7 @@ static void    set_unsaved_document           (GeditCloseConfirmationDialog *dlg,
 
 static GList   *get_selected_docs              (GtkTreeModel                 *store);
 
-/*  Since we connect in the costructor we are sure this handler will be called 
+/*  Since we connect in the costructor we are sure this handler will be called
  *  before the user ones
  */
 static void
@@ -98,7 +98,7 @@ response_cb (GeditCloseConfirmationDialog *dlg,
        g_return_if_fail (GEDIT_IS_CLOSE_CONFIRMATION_DIALOG (dlg));
 
        priv = dlg->priv;
-       
+
        if (priv->selected_documents != NULL)
                g_list_free (priv->selected_documents);
 
@@ -106,7 +106,7 @@ response_cb (GeditCloseConfirmationDialog *dlg,
        {
                if (GET_MODE (priv) == SINGLE_DOC_MODE)
                {
-                       priv->selected_documents = 
+                       priv->selected_documents =
                                g_list_copy (priv->unsaved_documents);
                }
                else
@@ -123,7 +123,7 @@ response_cb (GeditCloseConfirmationDialog *dlg,
        }
 }
 
-static void 
+static void
 gedit_close_confirmation_dialog_init (GeditCloseConfirmationDialog *dlg)
 {
        GeditLockdownMask lockdown;
@@ -135,12 +135,12 @@ gedit_close_confirmation_dialog_init (GeditCloseConfirmationDialog *dlg)
 
        dlg->priv->disable_save_to_disk = lockdown & GEDIT_LOCKDOWN_SAVE_TO_DISK;
 
-       gtk_container_set_border_width (GTK_CONTAINER (dlg), 5);                
+       gtk_container_set_border_width (GTK_CONTAINER (dlg), 5);
        gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))),
                             14);
        gtk_window_set_resizable (GTK_WINDOW (dlg), FALSE);
        gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dlg), TRUE);
-       
+
        gtk_window_set_title (GTK_WINDOW (dlg), "");
 
        gtk_window_set_modal (GTK_WINDOW (dlg), TRUE);
@@ -149,14 +149,14 @@ gedit_close_confirmation_dialog_init (GeditCloseConfirmationDialog *dlg)
        atk_obj = gtk_widget_get_accessible (GTK_WIDGET (dlg));
        atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
        atk_object_set_name (atk_obj, _("Question"));
-       
+
        g_signal_connect (dlg,
                          "response",
                          G_CALLBACK (response_cb),
                          NULL);
 }
 
-static void 
+static void
 gedit_close_confirmation_dialog_finalize (GObject *object)
 {
        GeditCloseConfirmationDialogPrivate *priv;
@@ -174,9 +174,9 @@ gedit_close_confirmation_dialog_finalize (GObject *object)
 }
 
 static void
-gedit_close_confirmation_dialog_set_property (GObject      *object, 
-                                             guint         prop_id, 
-                                             const GValue *value, 
+gedit_close_confirmation_dialog_set_property (GObject      *object,
+                                             guint         prop_id,
+                                             const GValue *value,
                                              GParamSpec   *pspec)
 {
        GeditCloseConfirmationDialog *dlg;
@@ -196,9 +196,9 @@ gedit_close_confirmation_dialog_set_property (GObject      *object,
 }
 
 static void
-gedit_close_confirmation_dialog_get_property (GObject    *object, 
-                                             guint       prop_id, 
-                                             GValue     *value, 
+gedit_close_confirmation_dialog_get_property (GObject    *object,
+                                             guint       prop_id,
+                                             GValue     *value,
                                              GParamSpec *pspec)
 {
        GeditCloseConfirmationDialogPrivate *priv;
@@ -217,7 +217,7 @@ gedit_close_confirmation_dialog_get_property (GObject    *object,
        }
 }
 
-static void 
+static void
 gedit_close_confirmation_dialog_class_init (GeditCloseConfirmationDialogClass *klass)
 {
        GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
@@ -233,7 +233,7 @@ gedit_close_confirmation_dialog_class_init (GeditCloseConfirmationDialogClass *k
                                         g_param_spec_pointer ("unsaved_documents",
                                                               "Unsaved Documents",
                                                               "List of Unsaved Documents",
-                                                              (G_PARAM_READWRITE | 
+                                                              (G_PARAM_READWRITE |
                                                                G_PARAM_CONSTRUCT_ONLY)));
 }
 
@@ -252,7 +252,7 @@ get_selected_docs (GtkTreeModel *store)
                gboolean       to_save;
                GeditDocument *doc;
 
-               gtk_tree_model_get (store, &iter, 
+               gtk_tree_model_get (store, &iter,
                                    SAVE_COLUMN, &to_save,
                                    DOC_COLUMN, &doc,
                                    -1);
@@ -276,7 +276,7 @@ gedit_close_confirmation_dialog_get_selected_documents (GeditCloseConfirmationDi
 }
 
 GtkWidget *
-gedit_close_confirmation_dialog_new (GtkWindow *parent, 
+gedit_close_confirmation_dialog_new (GtkWindow *parent,
                                     GList     *unsaved_documents)
 {
        GtkWidget *dlg;
@@ -292,26 +292,26 @@ gedit_close_confirmation_dialog_new (GtkWindow *parent,
        {
                gtk_window_group_add_window (gedit_window_get_group (GEDIT_WINDOW (parent)),
                                             GTK_WINDOW (dlg));
-               
-               gtk_window_set_transient_for (GTK_WINDOW (dlg), parent);                                      
       
+
+               gtk_window_set_transient_for (GTK_WINDOW (dlg), parent);
        }
 
        return dlg;
 }
 
 GtkWidget *
-gedit_close_confirmation_dialog_new_single (GtkWindow     *parent, 
+gedit_close_confirmation_dialog_new_single (GtkWindow     *parent,
                                            GeditDocument *doc)
 {
        GtkWidget *dlg;
        GList *unsaved_documents;
        g_return_val_if_fail (doc != NULL, NULL);
-       
+
        unsaved_documents = g_list_prepend (NULL, doc);
 
-       dlg = gedit_close_confirmation_dialog_new (parent, 
+       dlg = gedit_close_confirmation_dialog_new (parent,
                                                   unsaved_documents);
-       
+
        g_list_free (unsaved_documents);
 
        return dlg;
@@ -363,10 +363,10 @@ get_text_secondary_label (GeditDocument *doc)
 {
        glong  seconds;
        gchar *secondary_msg;
-       
+
        seconds = MAX (1, _gedit_document_get_seconds_since_last_save_or_load (doc));
 
-       if (seconds < 55)       
+       if (seconds < 55)
        {
                secondary_msg = g_strdup_printf (
                                        ngettext ("If you don't save, changes from the last %ld second "
@@ -460,7 +460,7 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *dlg)
        add_buttons (dlg);
 
        /* Image */
-       image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, 
+       image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
                                          GTK_ICON_SIZE_DIALOG);
        gtk_widget_set_halign (image, GTK_ALIGN_START);
 
@@ -495,7 +495,7 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *dlg)
 
        /* Secondary label */
        if (dlg->priv->disable_save_to_disk)
-               str = g_strdup (_("Saving has been disabled by the system administrator."));    
+               str = g_strdup (_("Saving has been disabled by the system administrator."));
        else
                str = get_text_secondary_label (doc);
        secondary_label = gtk_label_new (str);
@@ -515,9 +515,9 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *dlg)
        gtk_box_pack_start (GTK_BOX (vbox), primary_label, FALSE, FALSE, 0);
        gtk_box_pack_start (GTK_BOX (vbox), secondary_label, FALSE, FALSE, 0);
        gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))),
-                           hbox, 
-                           FALSE, 
-                           FALSE, 
+                           hbox,
+                           FALSE,
+                           FALSE,
                            0);
 
        gtk_widget_show_all (hbox);
@@ -590,7 +590,7 @@ create_treeview (GeditCloseConfirmationDialogPrivate *priv)
        g_object_unref (store);
 
        priv->list_store = GTK_TREE_MODEL (store);
-       
+
        /* Add columns */
        if (!priv->disable_save_to_disk)
        {
@@ -643,7 +643,7 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
                            hbox, TRUE, TRUE, 0);
 
        /* Image */
-       image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, 
+       image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
                                          GTK_ICON_SIZE_DIALOG);
        gtk_widget_set_halign (image, GTK_ALIGN_START);
        gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
@@ -679,11 +679,11 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
 
        markup_str = g_strconcat ("<span weight=\"bold\" size=\"larger\">", str, "</span>", NULL);
        g_free (str);
-       
+
        gtk_label_set_markup (GTK_LABEL (primary_label), markup_str);
        g_free (markup_str);
        gtk_box_pack_start (GTK_BOX (vbox), primary_label, FALSE, FALSE, 0);
-       
+
        vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
        gtk_box_pack_start (GTK_BOX (vbox), vbox2, FALSE, FALSE, 0);
 
@@ -698,10 +698,10 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
 
        scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
        gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow, TRUE, TRUE, 0);
-       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow), 
-                                       GTK_POLICY_AUTOMATIC, 
+       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow),
+                                       GTK_POLICY_AUTOMATIC,
                                        GTK_POLICY_AUTOMATIC);
-       gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow), 
+       gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow),
                                             GTK_SHADOW_IN);
 
        treeview = create_treeview (priv);
@@ -725,7 +725,7 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
 
        gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), treeview);
 
-       gtk_widget_show_all (hbox);     
+       gtk_widget_show_all (hbox);
 }
 
 static void
@@ -734,7 +734,7 @@ set_unsaved_document (GeditCloseConfirmationDialog *dlg,
 {
        GeditCloseConfirmationDialogPrivate *priv;
 
-       g_return_if_fail (list != NULL);        
+       g_return_if_fail (list != NULL);
 
        priv = dlg->priv;
        g_return_if_fail (priv->unsaved_documents == NULL);
@@ -748,7 +748,7 @@ set_unsaved_document (GeditCloseConfirmationDialog *dlg,
        else
        {
                build_multiple_docs_dialog (dlg);
-       }       
+       }
 }
 
 const GList *
diff --git a/gedit/gedit-close-confirmation-dialog.h b/gedit/gedit-close-confirmation-dialog.h
index bae8182..03b1b2c 100644
--- a/gedit/gedit-close-confirmation-dialog.h
+++ b/gedit/gedit-close-confirmation-dialog.h
@@ -2,7 +2,7 @@
  * gedit-close-confirmation-dialog.h
  * This file is part of gedit
  *
- * Copyright (C) 2004-2005 GNOME Foundation 
+ * Copyright (C) 2004-2005 GNOME Foundation
  *
  * 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2004-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2004-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifndef __GEDIT_CLOSE_CONFIRMATION_DIALOG_H__
@@ -45,7 +45,7 @@ typedef struct _GeditCloseConfirmationDialog          GeditCloseConfirmationDialog;
 typedef struct _GeditCloseConfirmationDialogClass      GeditCloseConfirmationDialogClass;
 typedef struct _GeditCloseConfirmationDialogPrivate    GeditCloseConfirmationDialogPrivate;
 
-struct _GeditCloseConfirmationDialog 
+struct _GeditCloseConfirmationDialog
 {
        GtkDialog parent;
 
@@ -53,7 +53,7 @@ struct _GeditCloseConfirmationDialog
        GeditCloseConfirmationDialogPrivate *priv;
 };
 
-struct _GeditCloseConfirmationDialogClass 
+struct _GeditCloseConfirmationDialogClass
 {
        GtkDialogClass parent_class;
 };
@@ -62,7 +62,7 @@ GType                  gedit_close_confirmation_dialog_get_type               (void) 
G_GNUC_CONST;
 
 GtkWidget      *gedit_close_confirmation_dialog_new                    (GtkWindow     *parent,
                                                                         GList         *unsaved_documents);
-GtkWidget      *gedit_close_confirmation_dialog_new_single             (GtkWindow     *parent, 
+GtkWidget      *gedit_close_confirmation_dialog_new_single             (GtkWindow     *parent,
                                                                         GeditDocument *doc);
 
 const GList    *gedit_close_confirmation_dialog_get_unsaved_documents  (GeditCloseConfirmationDialog *dlg);
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 189cbbd..ad75b41 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -214,7 +214,7 @@ load_file_list (GeditWindow         *window,
                                         line_pos,
                                         column_pos,
                                         create);
-                       
+
                        /* make sure the view has focus */
                        gtk_widget_grab_focus (GTK_WIDGET (gedit_tab_get_view (tab)));
 
@@ -438,7 +438,7 @@ _gedit_cmd_file_open (GtkAction   *action,
                return;
        }
 
-       /* Translators: "Open Files" is the title of the file chooser window */ 
+       /* Translators: "Open Files" is the title of the file chooser window */
        open_dialog = gedit_file_chooser_dialog_new (_("Open Files"),
                                                     GTK_WINDOW (window),
                                                     GTK_FILE_CHOOSER_ACTION_OPEN,
@@ -939,7 +939,7 @@ _gedit_cmd_file_save_tab (GeditTab    *tab,
        doc = gedit_tab_get_document (tab);
        g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
 
-       if (gedit_document_is_untitled (doc) || 
+       if (gedit_document_is_untitled (doc) ||
            gedit_document_get_readonly (doc))
        {
                gedit_debug_message (DEBUG_COMMANDS, "Untitled or Readonly");
@@ -1016,7 +1016,7 @@ _gedit_cmd_file_save_documents_list (GeditWindow *window,
 
        gedit_debug (DEBUG_COMMANDS);
 
-       g_return_if_fail (!(gedit_window_get_state (window) & 
+       g_return_if_fail (!(gedit_window_get_state (window) &
                            GEDIT_WINDOW_STATE_PRINTING));
 
        l = docs;
@@ -1027,7 +1027,7 @@ _gedit_cmd_file_save_documents_list (GeditWindow *window,
                GeditTabState state;
 
                g_return_if_fail (GEDIT_IS_DOCUMENT (l->data));
- 
+
                doc = GEDIT_DOCUMENT (l->data);
                t = gedit_tab_get_from_document (doc);
                state = gedit_tab_get_state (t);
@@ -1042,7 +1042,7 @@ _gedit_cmd_file_save_documents_list (GeditWindow *window,
                {
                        /* FIXME: manage the case of local readonly files owned by the
                           user is running gedit - Paolo (Dec. 8, 2005) */
-                       if (gedit_document_is_untitled (doc) || 
+                       if (gedit_document_is_untitled (doc) ||
                            gedit_document_get_readonly (doc))
                        {
                                if (document_needs_saving (doc))
@@ -1116,7 +1116,7 @@ void
 gedit_commands_save_all_documents (GeditWindow *window)
 {
        GList *docs;
-       
+
        g_return_if_fail (GEDIT_IS_WINDOW (window));
 
        gedit_debug (DEBUG_COMMANDS);
@@ -1143,9 +1143,9 @@ gedit_commands_save_document (GeditWindow   *window,
 
        g_return_if_fail (GEDIT_IS_WINDOW (window));
        g_return_if_fail (GEDIT_IS_DOCUMENT (document));
-       
+
        gedit_debug (DEBUG_COMMANDS);
-       
+
        tab = gedit_tab_get_from_document (document);
        _gedit_cmd_file_save_tab (tab, window);
 }
@@ -1508,7 +1508,7 @@ save_and_close_all_documents (const GList  *docs,
                   - GEDIT_TAB_STATE_LOADING: close, we are sure the file is unmodified
                   - GEDIT_TAB_STATE_REVERTING: since the user wants
                     to return back to the version of the file she previously saved, we can close
-                    without saving (CHECK: are we sure this is the right behavior, suppose the case 
+                    without saving (CHECK: are we sure this is the right behavior, suppose the case
                     the original file has been deleted)
                   - [*] GEDIT_TAB_STATE_SAVING: invalid, ClosAll
                     and Quit are unsensitive if the window state is SAVING.
@@ -1538,12 +1538,12 @@ save_and_close_all_documents (const GList  *docs,
                {
                        if ((g_list_index ((GList *)docs, doc) >= 0) &&
                            (state != GEDIT_TAB_STATE_LOADING) &&
-                           (state != GEDIT_TAB_STATE_LOADING_ERROR) &&                     
+                           (state != GEDIT_TAB_STATE_LOADING_ERROR) &&
                            (state != GEDIT_TAB_STATE_REVERTING)) /* CHECK: is this the right behavior with 
REVERTING ?*/
-                       {                       
+                       {
                                /* The document must be saved before closing */
                                g_return_if_fail (document_needs_saving (doc));
-                               
+
                                /* FIXME: manage the case of local readonly files owned by the
                                   user is running gedit - Paolo (Dec. 8, 2005) */
                                if (gedit_document_is_untitled (doc) ||
@@ -1806,8 +1806,8 @@ _gedit_cmd_file_close_tab (GeditTab    *tab,
                           GEDIT_IS_QUITTING,
                           GBOOLEAN_TO_POINTER (FALSE));
 
-       g_object_set_data (G_OBJECT (window), 
-                          GEDIT_IS_QUITTING_ALL, 
+       g_object_set_data (G_OBJECT (window),
+                          GEDIT_IS_QUITTING_ALL,
                           GINT_TO_POINTER (FALSE));
 
 
@@ -1858,7 +1858,7 @@ file_close_all (GeditWindow *window,
        g_object_set_data (G_OBJECT (window),
                           GEDIT_IS_QUITTING,
                           GBOOLEAN_TO_POINTER (is_quitting));
-                          
+
        unsaved_docs = gedit_window_get_unsaved_documents (window);
 
        if (unsaved_docs == NULL)
@@ -1933,7 +1933,7 @@ quit_all ()
        for (item = windows; item; item = g_list_next (item))
        {
                GeditWindow *window = GEDIT_WINDOW (item->data);
-       
+
                g_object_set_data (G_OBJECT (window),
                                   GEDIT_IS_QUITTING_ALL,
                                   GINT_TO_POINTER (TRUE));
diff --git a/gedit/gedit-commands-search.c b/gedit/gedit-commands-search.c
index 515b599..c3f2433 100644
--- a/gedit/gedit-commands-search.c
+++ b/gedit/gedit-commands-search.c
@@ -134,7 +134,7 @@ text_not_found (GeditWindow *window,
                const gchar *text)
 {
        gchar *searched;
-       
+
        searched = gedit_utils_str_end_truncate (text, MAX_MSG_LENGTH);
 
        gedit_statusbar_flash_message (GEDIT_STATUSBAR (window->priv->statusbar),
@@ -197,12 +197,12 @@ run_search (GeditView   *view,
                {
                        found = gedit_document_search_backward (doc,
                                                                NULL, /* FIXME: set the start_inter */
-                                                               NULL, 
+                                                               NULL,
                                                                &match_start,
                                                                &match_end);
                }
        }
-       
+
        if (found)
        {
                gtk_text_buffer_place_cursor (GTK_TEXT_BUFFER (doc),
@@ -267,7 +267,7 @@ do_find (GeditReplaceDialog *dialog,
        }
 
        g_free (search_text);
-       
+
        found = run_search (active_view,
                            wrap_around,
                            search_backwards);
@@ -393,8 +393,8 @@ do_replace (GeditReplaceDialog *dialog,
 
        unescaped_search_text = gedit_utils_unescape_search_text (search_entry_text);
 
-       get_selected_text (GTK_TEXT_BUFFER (doc), 
-                          &selected_text, 
+       get_selected_text (GTK_TEXT_BUFFER (doc),
+                          &selected_text,
                           NULL);
 
        match_case = gedit_replace_dialog_get_match_case (dialog);
@@ -413,7 +413,7 @@ do_replace (GeditReplaceDialog *dialog,
                return;
        }
 
-       unescaped_replace_text = gedit_utils_unescape_search_text (replace_entry_text); 
+       unescaped_replace_text = gedit_utils_unescape_search_text (replace_entry_text);
        replace_selected_text (GTK_TEXT_BUFFER (doc), unescaped_replace_text);
 
        g_free (unescaped_search_text);
@@ -456,7 +456,7 @@ do_replace_all (GeditReplaceDialog *dialog,
        GEDIT_SEARCH_SET_CASE_SENSITIVE (flags, match_case);
        GEDIT_SEARCH_SET_ENTIRE_WORD (flags, entire_word);
 
-       count = gedit_document_replace_all (doc, 
+       count = gedit_document_replace_all (doc,
                                            search_entry_text,
                                            replace_entry_text,
                                            flags);
@@ -575,7 +575,7 @@ _gedit_cmd_search_replace (GtkAction   *action,
        else
        {
                g_return_if_fail (GEDIT_IS_REPLACE_DIALOG (data));
-               
+
                replace_dialog = GTK_WIDGET (data);
        }
 
@@ -610,15 +610,15 @@ do_find_again (GeditWindow *window,
        GeditView *active_view;
        gboolean wrap_around = TRUE;
        gpointer data;
-       
+
        active_view = gedit_window_get_active_view (window);
        g_return_if_fail (active_view != NULL);
 
        data = g_object_get_data (G_OBJECT (window), GEDIT_REPLACE_DIALOG_KEY);
-       
+
        if (data != NULL)
                wrap_around = gedit_replace_dialog_get_wrap_around (GEDIT_REPLACE_DIALOG (data));
-       
+
        run_search (active_view,
                    wrap_around,
                    backward);
diff --git a/gedit/gedit-commands-view.c b/gedit/gedit-commands-view.c
index b86f163..2e53995 100644
--- a/gedit/gedit-commands-view.c
+++ b/gedit/gedit-commands-view.c
@@ -79,7 +79,7 @@ _gedit_cmd_view_show_side_panel (GtkAction   *action,
 
        visible = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
        panel = gedit_window_get_side_panel (window);
-       
+
        gtk_widget_set_visible (GTK_WIDGET (panel), visible);
 
        if (visible)
diff --git a/gedit/gedit-commands.h b/gedit/gedit-commands.h
index 6cf92a7..ad6b5c8 100644
--- a/gedit/gedit-commands.h
+++ b/gedit/gedit-commands.h
@@ -4,8 +4,8 @@
  * This file is part of gedit
  *
  * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
- * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi 
- * Copyright (C) 2002-2005 Paolo Maggi 
+ * Copyright (C) 2000, 2001 Chema Celorio, 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
@@ -19,14 +19,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -170,5 +170,5 @@ void                _gedit_cmd_file_save_documents_list     (GeditWindow *window,
 
 G_END_DECLS
 
-#endif /* __GEDIT_COMMANDS_H__ */ 
+#endif /* __GEDIT_COMMANDS_H__ */
 /* ex:set ts=8 noet: */
diff --git a/gedit/gedit-dirs.h b/gedit/gedit-dirs.h
index eae4f09..714f0aa 100644
--- a/gedit/gedit-dirs.h
+++ b/gedit/gedit-dirs.h
@@ -16,8 +16,8 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 
diff --git a/gedit/gedit-document-input-stream.c b/gedit/gedit-document-input-stream.c
index a9039ca..b4d53c2 100644
--- a/gedit/gedit-document-input-stream.c
+++ b/gedit/gedit-document-input-stream.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -151,7 +151,7 @@ gedit_document_input_stream_class_init (GeditDocumentInputStreamClass *klass)
         *
         * The :newline-type property determines what is considered
         * as a line ending when reading complete lines from the stream.
-        */ 
+        */
        g_object_class_install_property (gobject_class,
                                         PROP_NEWLINE_TYPE,
                                         g_param_spec_enum ("newline-type",
diff --git a/gedit/gedit-document-input-stream.h b/gedit/gedit-document-input-stream.h
index d487670..ca00970 100644
--- a/gedit/gedit-document-input-stream.h
+++ b/gedit/gedit-document-input-stream.h
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -45,7 +45,7 @@ typedef struct _GeditDocumentInputStreamPrivate       GeditDocumentInputStreamPrivate;
 struct _GeditDocumentInputStream
 {
        GInputStream parent;
-       
+
        GeditDocumentInputStreamPrivate *priv;
 };
 
diff --git a/gedit/gedit-document-loader.c b/gedit/gedit-document-loader.c
index 0761114..008fc3b 100644
--- a/gedit/gedit-document-loader.c
+++ b/gedit/gedit-document-loader.c
@@ -21,7 +21,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
  * Modified by the gedit Team, 2005-2008. See the AUTHORS file for a
  * list of people on the gedit Team.
@@ -111,7 +111,7 @@ struct _GeditDocumentLoaderPrivate
        const GeditEncoding      *auto_detected_encoding;
        GeditDocumentNewlineType  auto_detected_newline_type;
        GeditDocumentCompressionType auto_detected_compression_type;
-       
+
        goffset                   bytes_read;
 
        GCancellable             *cancellable;
@@ -349,7 +349,7 @@ static AsyncData *
 async_data_new (GeditDocumentLoader *loader)
 {
        AsyncData *async;
-       
+
        async = g_slice_new (AsyncData);
        async->loader = loader;
        async->cancellable = g_object_ref (loader->priv->cancellable);
@@ -403,7 +403,7 @@ get_metadata_encoding (GeditDocumentLoader *loader)
 
                if (charset == NULL)
                        return NULL;
-               
+
                enc = gedit_encoding_get_from_charset (charset);
        }
 #endif
@@ -446,9 +446,9 @@ close_input_stream_ready_cb (GInputStream *stream,
                async_data_free (async);
                return;
        }
-       
+
        gedit_debug_message (DEBUG_LOADER, "Finished closing input stream");
-       
+
        if (!g_input_stream_close_finish (stream, res, &error))
        {
                gedit_debug_message (DEBUG_LOADER, "Closing input stream error: %s", error->message);
@@ -607,7 +607,7 @@ async_read_cb (GInputStream *stream,
                loader->priv->auto_detected_newline_type =
                        gedit_document_output_stream_detect_newline_type (GEDIT_DOCUMENT_OUTPUT_STREAM 
(loader->priv->output));
 
-               
+
 
                write_complete (async);
 
@@ -738,7 +738,7 @@ finish_query_info (AsyncData *async)
 {
        GeditDocumentLoader *loader;
        GFileInfo *info;
-       
+
        loader = async->loader;
        info = loader->priv->info;
 
@@ -775,7 +775,7 @@ query_info_cb (GFile        *source,
        {
                async_data_free (async);
                return;
-       }       
+       }
 
        priv = async->loader->priv;
 
@@ -814,7 +814,7 @@ mount_ready_callback (GFile        *file,
        }
 
        mounted = g_file_mount_enclosing_volume_finish (file, res, &error);
-       
+
        if (!mounted)
        {
                async_failed (async, error);
@@ -855,7 +855,7 @@ async_read_ready_callback (GObject      *source,
 {
        GError *error = NULL;
        GeditDocumentLoader *loader;
-       
+
        gedit_debug (DEBUG_LOADER);
 
        /* manual check for cancelled state */
@@ -866,19 +866,19 @@ async_read_ready_callback (GObject      *source,
        }
 
        loader = async->loader;
-       
+
        loader->priv->stream = G_INPUT_STREAM (g_file_read_finish (loader->priv->location,
                                                                     res, &error));
 
        if (!loader->priv->stream)
-       {               
+       {
                if (error->code == G_IO_ERROR_NOT_MOUNTED && !async->tried_mount)
                {
                        recover_not_mounted (async);
                        g_error_free (error);
                        return;
                }
-               
+
                /* Propagate error */
                g_propagate_error (&loader->priv->error, error);
                gedit_document_loader_loading (loader,
@@ -889,7 +889,7 @@ async_read_ready_callback (GObject      *source,
                return;
        }
 
-       /* get the file info: note we cannot use 
+       /* get the file info: note we cannot use
         * g_file_input_stream_query_info_async since it is not able to get the
         * content type etc, beside it is not supported by gvfs.
         * Using the file instead of the stream is slightly racy, but for
@@ -907,7 +907,7 @@ async_read_ready_callback (GObject      *source,
 static void
 open_async_read (AsyncData *async)
 {
-       g_file_read_async (async->loader->priv->location, 
+       g_file_read_async (async->loader->priv->location,
                           G_PRIORITY_HIGH,
                           async->cancellable,
                           (GAsyncReadyCallback) async_read_ready_callback,
@@ -952,7 +952,7 @@ gedit_document_loader_load (GeditDocumentLoader *loader)
        /* the loader can be used just once, then it must be thrown away */
        g_return_if_fail (loader->priv->used == FALSE);
        loader->priv->used = TRUE;
-       
+
        /* make sure no load operation is currently running */
        g_return_if_fail (loader->priv->cancellable == NULL);
 
@@ -981,7 +981,7 @@ gboolean
 gedit_document_loader_cancel (GeditDocumentLoader *loader)
 {
        gedit_debug (DEBUG_LOADER);
-       
+
        g_return_val_if_fail (GEDIT_IS_DOCUMENT_LOADER (loader), FALSE);
 
        if (loader->priv->cancellable == NULL)
@@ -1038,7 +1038,7 @@ gedit_document_loader_get_encoding (GeditDocumentLoader *loader)
        if (loader->priv->encoding != NULL)
                return loader->priv->encoding;
 
-       g_return_val_if_fail (loader->priv->auto_detected_encoding != NULL, 
+       g_return_val_if_fail (loader->priv->auto_detected_encoding != NULL,
                              gedit_encoding_get_current ());
 
        return loader->priv->auto_detected_encoding;
diff --git a/gedit/gedit-document-loader.h b/gedit/gedit-document-loader.h
index f9c2da8..8a2446c 100644
--- a/gedit/gedit-document-loader.h
+++ b/gedit/gedit-document-loader.h
@@ -18,10 +18,10 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
  * Modified by the gedit Team, 2005-2008. See the AUTHORS file for a
  * list of people on the gedit Team.
@@ -68,7 +68,7 @@ struct _GeditDocumentLoader
  */
 typedef struct _GeditDocumentLoaderClass GeditDocumentLoaderClass;
 
-struct _GeditDocumentLoaderClass 
+struct _GeditDocumentLoaderClass
 {
        GObjectClass parent_class;
 
@@ -103,7 +103,7 @@ gboolean             gedit_document_loader_cancel           (GeditDocumentLoader *loader);
 GeditDocument          *gedit_document_loader_get_document     (GeditDocumentLoader *loader);
 
 /* Returns STDIN_URI if loading from stdin */
-#define STDIN_URI "stdin:" 
+#define STDIN_URI "stdin:"
 GFile                  *gedit_document_loader_get_location     (GeditDocumentLoader *loader);
 
 const GeditEncoding    *gedit_document_loader_get_encoding     (GeditDocumentLoader *loader);
@@ -115,7 +115,7 @@ GeditDocumentCompressionType gedit_document_loader_get_compression_type
 
 goffset                         gedit_document_loader_get_bytes_read   (GeditDocumentLoader *loader);
 
-/* You can get from the info: content_type, time_modified, standard_size, access_can_write 
+/* You can get from the info: content_type, time_modified, standard_size, access_can_write
    and also the metadata*/
 GFileInfo              *gedit_document_loader_get_info         (GeditDocumentLoader *loader);
 
diff --git a/gedit/gedit-document-output-stream.c b/gedit/gedit-document-output-stream.c
index fd3bf27..4043945 100644
--- a/gedit/gedit-document-output-stream.c
+++ b/gedit/gedit-document-output-stream.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -402,7 +402,7 @@ guess_encoding (GeditDocumentOutputStream *stream,
                {
                        gsize remainder;
                        const gchar *end;
-                       
+
                        if (g_utf8_validate (inbuf, inbuf_size, &end) ||
                            stream->priv->use_first)
                        {
diff --git a/gedit/gedit-document-output-stream.h b/gedit/gedit-document-output-stream.h
index 6f32531..68996a5 100644
--- a/gedit/gedit-document-output-stream.h
+++ b/gedit/gedit-document-output-stream.h
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
diff --git a/gedit/gedit-document-saver.c b/gedit/gedit-document-saver.c
index 20c3298..9f203dd 100644
--- a/gedit/gedit-document-saver.c
+++ b/gedit/gedit-document-saver.c
@@ -81,7 +81,7 @@ typedef struct
 
 #define REMOTE_QUERY_ATTRIBUTES G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," \
                                G_FILE_ATTRIBUTE_TIME_MODIFIED
-                               
+
 #define GEDIT_DOCUMENT_SAVER_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), \
                                                          GEDIT_TYPE_DOCUMENT_SAVER, \
                                                          GeditDocumentSaverPrivate))
@@ -113,7 +113,7 @@ struct _GeditDocumentSaverPrivate
        GCancellable             *cancellable;
        GOutputStream            *stream;
        GInputStream             *input;
-       
+
        GError                   *error;
 };
 
@@ -217,7 +217,7 @@ static AsyncData *
 async_data_new (GeditDocumentSaver *saver)
 {
        AsyncData *async;
-       
+
        async = g_slice_new (AsyncData);
        async->saver = saver;
        async->cancellable = g_object_ref (saver->priv->cancellable);
@@ -244,7 +244,7 @@ async_data_free (AsyncData *async)
        g_slice_free (AsyncData, async);
 }
 
-static void 
+static void
 gedit_document_saver_class_init (GeditDocumentSaverClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -367,7 +367,7 @@ gedit_document_saver_new (GeditDocument                *doc,
 }
 
 static void
-remote_save_completed_or_failed (GeditDocumentSaver *saver, 
+remote_save_completed_or_failed (GeditDocumentSaver *saver,
                                 AsyncData          *async)
 {
        gedit_document_saver_saving (saver,
@@ -481,7 +481,7 @@ remote_get_info_cb (GFile        *source,
                async_data_free (async);
                return;
        }
-       
+
        saver = async->saver;
 
        gedit_debug_message (DEBUG_SAVER, "Finished query info on file");
@@ -518,9 +518,9 @@ close_async_ready_get_info_cb (GOutputStream *stream,
                async_data_free (async);
                return;
        }
-       
+
        gedit_debug_message (DEBUG_SAVER, "Finished closing stream");
-       
+
        if (!g_output_stream_close_finish (stream, res, &error))
        {
                gedit_debug_message (DEBUG_SAVER, "Closing stream error: %s", error->message);
@@ -529,7 +529,7 @@ close_async_ready_get_info_cb (GOutputStream *stream,
                return;
        }
 
-       /* get the file info: note we cannot use 
+       /* get the file info: note we cannot use
         * g_file_output_stream_query_info_async since it is not able to get the
         * content type etc, beside it is not supported by gvfs.
         * I'm not sure this is actually necessary, can't we just use
@@ -701,7 +701,7 @@ async_replace_ready_callback (GFile        *source,
                async_data_free (async);
                return;
        }
-       
+
        saver = async->saver;
        file_stream = g_file_replace_finish (source, res, &error);
 
@@ -819,7 +819,7 @@ mount_ready_callback (GFile        *file,
        }
 
        mounted = g_file_mount_enclosing_volume_finish (file, res, &error);
-       
+
        if (!mounted)
        {
                async_failed (async, error);
@@ -836,7 +836,7 @@ recover_not_mounted (AsyncData *async)
 {
        GeditDocument *doc;
        GMountOperation *mount_operation;
-       
+
        gedit_debug (DEBUG_LOADER);
 
        doc = gedit_document_saver_get_document (async->saver);
@@ -870,7 +870,7 @@ check_modification_callback (GFile        *source,
                async_data_free (async);
                return;
        }
-       
+
        saver = async->saver;
        info = g_file_query_info_finish (source, res, &error);
        if (info == NULL)
@@ -881,7 +881,7 @@ check_modification_callback (GFile        *source,
                        g_error_free (error);
                        return;
                }
-               
+
                /* it's perfectly fine if the file doesn't exist yet */
                if (error->code != G_IO_ERROR_NOT_FOUND)
                {
@@ -931,7 +931,7 @@ check_modified_async (AsyncData *async)
 {
        gedit_debug_message (DEBUG_SAVER, "Check externally modified");
 
-       g_file_query_info_async (async->saver->priv->location, 
+       g_file_query_info_async (async->saver->priv->location,
                                 G_FILE_ATTRIBUTE_TIME_MODIFIED,
                                 G_FILE_QUERY_INFO_NONE,
                                 G_PRIORITY_HIGH,
@@ -946,14 +946,14 @@ save_remote_file_real (GeditDocumentSaver *saver)
        AsyncData *async;
 
        gedit_debug_message (DEBUG_SAVER, "Starting  save");
-       
+
        /* First find out if the file is modified externally. This requires
         * a stat, but I don't think we can do this any other way
         */
        async = async_data_new (saver);
-       
+
        check_modified_async (async);
-       
+
        /* return false to stop timeout */
        return FALSE;
 }
diff --git a/gedit/gedit-document-saver.h b/gedit/gedit-document-saver.h
index dd125da..c4ddf59 100644
--- a/gedit/gedit-document-saver.h
+++ b/gedit/gedit-document-saver.h
@@ -21,7 +21,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
  * Modified by the gedit Team, 2005-2007. See the AUTHORS file for a
  * list of people on the gedit Team.
@@ -53,7 +53,7 @@ typedef struct _GeditDocumentSaverPrivate GeditDocumentSaverPrivate;
  */
 typedef struct _GeditDocumentSaver GeditDocumentSaver;
 
-struct _GeditDocumentSaver 
+struct _GeditDocumentSaver
 {
        GObject object;
 
@@ -66,7 +66,7 @@ struct _GeditDocumentSaver
  */
 typedef struct _GeditDocumentSaverClass GeditDocumentSaverClass;
 
-struct _GeditDocumentSaverClass 
+struct _GeditDocumentSaverClass
 {
        GObjectClass parent_class;
 
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 4851eef..ce43c77 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -3,8 +3,8 @@
  * This file is part of gedit
  *
  * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
- * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi 
- * Copyright (C) 2002-2005 Paolo Maggi 
+ * Copyright (C) 2000, 2001 Chema Celorio, 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
@@ -18,14 +18,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -56,7 +56,7 @@
 #define METADATA_QUERY "metadata::*"
 #endif
 
-#undef ENABLE_PROFILE 
+#undef ENABLE_PROFILE
 
 #ifdef ENABLE_PROFILE
 #define PROFILE(x) x
@@ -92,7 +92,7 @@ static void   insert_text_cb                  (GeditDocument                *doc,
                                                 GtkTextIter                  *pos,
                                                 const gchar                  *text,
                                                 gint                          length);
-                                                
+
 static void    delete_range_cb                 (GeditDocument                *doc,
                                                 GtkTextIter                  *start,
                                                 GtkTextIter                  *end);
@@ -124,7 +124,7 @@ struct _GeditDocumentPrivate
 
        /* Temp data while loading */
        GeditDocumentLoader *loader;
-       gboolean             create; /* Create file if uri points 
+       gboolean             create; /* Create file if uri points
                                      * to a non existing file */
        const GeditEncoding *requested_encoding;
        gint                 requested_line_pos;
@@ -210,7 +210,7 @@ get_untitled_number (void)
        {
                if (g_hash_table_lookup (allocated_untitled_numbers, GINT_TO_POINTER (i)) == NULL)
                {
-                       g_hash_table_insert (allocated_untitled_numbers, 
+                       g_hash_table_insert (allocated_untitled_numbers,
                                             GINT_TO_POINTER (i),
                                             GINT_TO_POINTER (i));
 
@@ -256,7 +256,7 @@ set_compression_type (GeditDocument *doc,
 static void
 gedit_document_dispose (GObject *object)
 {
-       GeditDocument *doc = GEDIT_DOCUMENT (object); 
+       GeditDocument *doc = GEDIT_DOCUMENT (object);
 
        gedit_debug (DEBUG_DOCUMENT);
 
@@ -287,7 +287,7 @@ gedit_document_dispose (GObject *object)
                                &iter,
                                gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (doc)));
 
-               position = g_strdup_printf ("%d", 
+               position = g_strdup_printf ("%d",
                                            gtk_text_iter_get_offset (&iter));
 
                if (language == NULL)
@@ -318,7 +318,7 @@ gedit_document_dispose (GObject *object)
 static void
 gedit_document_finalize (GObject *object)
 {
-       GeditDocument *doc = GEDIT_DOCUMENT (object); 
+       GeditDocument *doc = GEDIT_DOCUMENT (object);
 
        gedit_debug (DEBUG_DOCUMENT);
 
@@ -473,7 +473,7 @@ gedit_document_changed (GtkTextBuffer *buffer)
        GTK_TEXT_BUFFER_CLASS (gedit_document_parent_class)->changed (buffer);
 }
 
-static void 
+static void
 gedit_document_class_init (GeditDocumentClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -591,7 +591,7 @@ gedit_document_class_init (GeditDocumentClass *klass)
        /* This signal is used to update the cursor position is the statusbar,
         * it's emitted either when the insert mark is moved explicitely or
         * when the buffer changes (insert/delete).
-        * We prevent the emission of the signal during replace_all to 
+        * We prevent the emission of the signal during replace_all to
         * improve performance.
         */
        document_signals[CURSOR_MOVED] =
@@ -716,8 +716,8 @@ gedit_document_class_init (GeditDocumentClass *klass)
                              G_STRUCT_OFFSET (GeditDocumentClass, search_highlight_updated),
                              NULL, NULL,
                              gedit_marshal_VOID__BOXED_BOXED,
-                             G_TYPE_NONE, 
-                             2, 
+                             G_TYPE_NONE,
+                             2,
                              GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE,
                              GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE);
 
@@ -732,9 +732,9 @@ set_language (GeditDocument     *doc,
        GtkSourceLanguage *old_lang;
 
        gedit_debug (DEBUG_DOCUMENT);
-       
+
        old_lang = gtk_source_buffer_get_language (GTK_SOURCE_BUFFER (doc));
-       
+
        if (old_lang == lang)
                return;
 
@@ -743,10 +743,10 @@ set_language (GeditDocument     *doc,
        if (lang != NULL)
        {
                gboolean syntax_hl;
-               
+
                syntax_hl = g_settings_get_boolean (doc->priv->editor_settings,
                                                    GEDIT_SETTINGS_SYNTAX_HIGHLIGHTING);
-               
+
                gtk_source_buffer_set_highlight_syntax (GTK_SOURCE_BUFFER (doc),
                                                        syntax_hl);
        }
@@ -767,7 +767,7 @@ set_language (GeditDocument     *doc,
 }
 
 static void
-set_encoding (GeditDocument       *doc, 
+set_encoding (GeditDocument       *doc,
              const GeditEncoding *encoding,
              gboolean             set_by_user)
 {
@@ -808,9 +808,9 @@ get_default_style_scheme (GSettings *editor_settings)
                g_warning ("Default style scheme '%s' cannot be found, falling back to 'classic' style scheme 
", scheme_id);
 
                def_style = gtk_source_style_scheme_manager_get_scheme (manager, "classic");
-               if (def_style == NULL) 
+               if (def_style == NULL)
                {
-                       g_warning ("Style scheme 'classic' cannot be found, check your GtkSourceView 
installation.");                   
+                       g_warning ("Style scheme 'classic' cannot be found, check your GtkSourceView 
installation.");
                }
        }
 
@@ -953,7 +953,7 @@ gedit_document_init (GeditDocument *doc)
        gedit_debug (DEBUG_DOCUMENT);
 
        doc->priv = GEDIT_DOCUMENT_GET_PRIVATE (doc);
-       
+
        doc->priv->editor_settings = g_settings_new ("org.gnome.gedit.preferences.editor");
 
        doc->priv->location = NULL;
@@ -986,10 +986,10 @@ gedit_document_init (GeditDocument *doc)
        search_hl = g_settings_get_boolean (doc->priv->editor_settings,
                                            GEDIT_SETTINGS_SEARCH_HIGHLIGHTING);
 
-       gtk_source_buffer_set_max_undo_levels (GTK_SOURCE_BUFFER (doc), 
+       gtk_source_buffer_set_max_undo_levels (GTK_SOURCE_BUFFER (doc),
                                               undo_actions);
 
-       gtk_source_buffer_set_highlight_matching_brackets (GTK_SOURCE_BUFFER (doc), 
+       gtk_source_buffer_set_highlight_matching_brackets (GTK_SOURCE_BUFFER (doc),
                                                           bracket_matching);
 
        gedit_document_set_enable_search_highlighting (doc,
@@ -1000,12 +1000,12 @@ gedit_document_init (GeditDocument *doc)
                gtk_source_buffer_set_style_scheme (GTK_SOURCE_BUFFER (doc),
                                                    style_scheme);
 
-       g_signal_connect_after (doc, 
+       g_signal_connect_after (doc,
                                "insert-text",
                                G_CALLBACK (insert_text_cb),
                                NULL);
 
-       g_signal_connect_after (doc, 
+       g_signal_connect_after (doc,
                                "delete-range",
                                G_CALLBACK (delete_range_cb),
                                NULL);
@@ -1311,7 +1311,7 @@ set_readonly (GeditDocument *doc,
 
        readonly = (readonly != FALSE);
 
-       if (doc->priv->readonly == readonly) 
+       if (doc->priv->readonly == readonly)
                return FALSE;
 
        doc->priv->readonly = readonly;
@@ -1405,7 +1405,7 @@ document_loader_loaded (GeditDocumentLoader *loader,
                doc->priv->externally_modified = FALSE;
                doc->priv->deleted = FALSE;
 
-               set_encoding (doc, 
+               set_encoding (doc,
                              gedit_document_loader_get_encoding (loader),
                              (doc->priv->requested_encoding != NULL));
 
@@ -1510,7 +1510,7 @@ document_loader_loading (GeditDocumentLoader *loader,
 
                read = gedit_document_loader_get_bytes_read (loader);
 
-               g_signal_emit (doc, 
+               g_signal_emit (doc,
                               document_signals[LOADING],
                               0,
                               read,
@@ -1712,8 +1712,8 @@ document_saver_saving (GeditDocumentSaver *saver,
                        gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (doc),
                                                      FALSE);
 
-                       set_encoding (doc, 
-                                     doc->priv->requested_encoding, 
+                       set_encoding (doc,
+                                     doc->priv->requested_encoding,
                                      TRUE);
                }
 
@@ -1875,11 +1875,11 @@ gedit_document_is_untouched (GeditDocument *doc)
 {
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), TRUE);
 
-       return (doc->priv->location == NULL) && 
+       return (doc->priv->location == NULL) &&
                (!gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc)));
 }
 
-gboolean 
+gboolean
 gedit_document_is_untitled (GeditDocument *doc)
 {
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), TRUE);
@@ -1982,7 +1982,7 @@ gedit_document_get_deleted (GeditDocument *doc)
  * to the last line and FALSE is returned.
  */
 gboolean
-gedit_document_goto_line (GeditDocument *doc, 
+gedit_document_goto_line (GeditDocument *doc,
                          gint           line)
 {
        gboolean ret = TRUE;
@@ -2122,7 +2122,7 @@ gedit_document_set_search_text (GeditDocument *doc,
        gchar *converted_text;
        gboolean notify = FALSE;
        gboolean update_to_search_region = FALSE;
-       
+
        g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
        g_return_if_fail ((text == NULL) || (doc->priv->search_text != text));
        g_return_if_fail ((text == NULL) || g_utf8_validate (text, -1, NULL));
@@ -2141,19 +2141,19 @@ gedit_document_set_search_text (GeditDocument *doc,
                        converted_text = g_strdup("");
                        notify = gedit_document_get_can_search_again (doc);
                }
-               
+
                g_free (doc->priv->search_text);
-       
+
                doc->priv->search_text = converted_text;
                doc->priv->num_of_lines_search_text = compute_num_of_lines (doc->priv->search_text);
                update_to_search_region = TRUE;
        }
-       
+
        if (!GEDIT_SEARCH_IS_DONT_SET_FLAGS (flags))
        {
                if (doc->priv->search_flags != flags)
                        update_to_search_region = TRUE;
-                       
+
                doc->priv->search_flags = flags;
 
        }
@@ -2162,16 +2162,16 @@ gedit_document_set_search_text (GeditDocument *doc,
        {
                GtkTextIter begin;
                GtkTextIter end;
-               
+
                gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (doc),
                                            &begin,
                                            &end);
-                                           
+
                to_search_region_range (doc,
                                        &begin,
                                        &end);
        }
-       
+
        if (notify)
                g_object_notify (G_OBJECT (doc), "can-search-again");
 }
@@ -2198,7 +2198,7 @@ gedit_document_get_can_search_again (GeditDocument *doc)
 {
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
 
-       return ((doc->priv->search_text != NULL) && 
+       return ((doc->priv->search_text != NULL) &&
                (*doc->priv->search_text != '\0'));
 }
 
@@ -2222,13 +2222,13 @@ gedit_document_search_forward (GeditDocument     *doc,
        gboolean found = FALSE;
        GtkTextIter m_start;
        GtkTextIter m_end;
-       
+
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
-       g_return_val_if_fail ((start == NULL) || 
+       g_return_val_if_fail ((start == NULL) ||
                              (gtk_text_iter_get_buffer (start) ==  GTK_TEXT_BUFFER (doc)), FALSE);
-       g_return_val_if_fail ((end == NULL) || 
+       g_return_val_if_fail ((end == NULL) ||
                              (gtk_text_iter_get_buffer (end) ==  GTK_TEXT_BUFFER (doc)), FALSE);
-       
+
        if (doc->priv->search_text == NULL)
        {
                gedit_debug_message (DEBUG_DOCUMENT, "doc->priv->search_text == NULL\n");
@@ -2238,19 +2238,19 @@ gedit_document_search_forward (GeditDocument     *doc,
        {
                gedit_debug_message (DEBUG_DOCUMENT, "doc->priv->search_text == \"%s\"\n", 
doc->priv->search_text);
        }
-                                     
+
        if (start == NULL)
                gtk_text_buffer_get_start_iter (GTK_TEXT_BUFFER (doc), &iter);
        else
                iter = *start;
-               
+
        search_flags = GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY;
 
        if (!GEDIT_SEARCH_IS_CASE_SENSITIVE (doc->priv->search_flags))
        {
                search_flags = search_flags | GTK_TEXT_SEARCH_CASE_INSENSITIVE;
        }
-               
+
        while (!found)
        {
                found = gtk_text_iter_forward_search (&iter,
@@ -2262,10 +2262,10 @@ gedit_document_search_forward (GeditDocument     *doc,
 
                if (found && GEDIT_SEARCH_IS_ENTIRE_WORD (doc->priv->search_flags))
                {
-                       found = gtk_text_iter_starts_word (&m_start) && 
+                       found = gtk_text_iter_starts_word (&m_start) &&
                                        gtk_text_iter_ends_word (&m_end);
 
-                       if (!found) 
+                       if (!found)
                                iter = m_end;
                }
                else
@@ -2273,14 +2273,14 @@ gedit_document_search_forward (GeditDocument     *doc,
                        break;
                }
        }
-       
+
        if (found && (match_start != NULL))
                *match_start = m_start;
-       
+
        if (found && (match_end != NULL))
                *match_end = m_end;
-       
-       return found;                       
+
+       return found;
 }
 
 /**
@@ -2303,13 +2303,13 @@ gedit_document_search_backward (GeditDocument     *doc,
        gboolean found = FALSE;
        GtkTextIter m_start;
        GtkTextIter m_end;
-       
+
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
-       g_return_val_if_fail ((start == NULL) || 
+       g_return_val_if_fail ((start == NULL) ||
                              (gtk_text_iter_get_buffer (start) ==  GTK_TEXT_BUFFER (doc)), FALSE);
-       g_return_val_if_fail ((end == NULL) || 
+       g_return_val_if_fail ((end == NULL) ||
                              (gtk_text_iter_get_buffer (end) ==  GTK_TEXT_BUFFER (doc)), FALSE);
-       
+
        if (doc->priv->search_text == NULL)
        {
                gedit_debug_message (DEBUG_DOCUMENT, "doc->priv->search_text == NULL\n");
@@ -2319,12 +2319,12 @@ gedit_document_search_backward (GeditDocument     *doc,
        {
                gedit_debug_message (DEBUG_DOCUMENT, "doc->priv->search_text == \"%s\"\n", 
doc->priv->search_text);
        }
-                                     
+
        if (end == NULL)
                gtk_text_buffer_get_end_iter (GTK_TEXT_BUFFER (doc), &iter);
        else
                iter = *end;
-               
+
        search_flags = GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY;
 
        if (!GEDIT_SEARCH_IS_CASE_SENSITIVE (doc->priv->search_flags))
@@ -2343,10 +2343,10 @@ gedit_document_search_backward (GeditDocument     *doc,
 
                if (found && GEDIT_SEARCH_IS_ENTIRE_WORD (doc->priv->search_flags))
                {
-                       found = gtk_text_iter_starts_word (&m_start) && 
+                       found = gtk_text_iter_starts_word (&m_start) &&
                                        gtk_text_iter_ends_word (&m_end);
 
-                       if (!found) 
+                       if (!found)
                                iter = m_start;
                }
                else
@@ -2354,21 +2354,21 @@ gedit_document_search_backward (GeditDocument     *doc,
                        break;
                }
        }
-       
+
        if (found && (match_start != NULL))
                *match_start = m_start;
-       
+
        if (found && (match_end != NULL))
                *match_end = m_end;
-       
-       return found;                 
+
+       return found;
 }
 
 /* FIXME this is an issue for introspection regardning @find */
-gint 
+gint
 gedit_document_replace_all (GeditDocument       *doc,
-                           const gchar         *find, 
-                           const gchar         *replace, 
+                           const gchar         *find,
+                           const gchar         *replace,
                            guint                flags)
 {
        GtkTextIter iter;
@@ -2437,7 +2437,7 @@ gedit_document_replace_all (GeditDocument       *doc,
                {
                        gboolean word;
 
-                       word = gtk_text_iter_starts_word (&m_start) && 
+                       word = gtk_text_iter_starts_word (&m_start) &&
                               gtk_text_iter_ends_word (&m_end);
 
                        if (!word)
@@ -2451,7 +2451,7 @@ gedit_document_replace_all (GeditDocument       *doc,
                {
                        ++cont;
 
-                       gtk_text_buffer_delete (buffer, 
+                       gtk_text_buffer_delete (buffer,
                                                &m_start,
                                                &m_end);
                        gtk_text_buffer_insert (buffer,
@@ -2467,7 +2467,7 @@ gedit_document_replace_all (GeditDocument       *doc,
        gtk_text_buffer_end_user_action (buffer);
 
        /* re-enable cursor_moved emission and notify
-        * the current position 
+        * the current position
         */
        doc->priv->stop_cursor_moved_emission = FALSE;
        emit_cursor_moved (doc);
@@ -2516,7 +2516,7 @@ get_style_colors (GeditDocument *doc,
                goto fallback;
 
        g_object_get (style,
-                     "foreground-set", foreground_set, 
+                     "foreground-set", foreground_set,
                      "foreground", &fg,
                      "background-set", background_set,
                      "background", &bg,
@@ -2565,7 +2565,7 @@ get_style_colors (GeditDocument *doc,
        return;
 
  fallback:
-       gedit_debug_message (DEBUG_DOCUMENT, 
+       gedit_debug_message (DEBUG_DOCUMENT,
                             "Falling back to hard-coded colors "
                             "for the \"found\" text tag.");
 
@@ -2656,21 +2656,21 @@ search_region (GeditDocument *doc,
        GtkTextSearchFlags search_flags = 0;
        gboolean found = TRUE;
 
-       GtkTextBuffer *buffer;  
+       GtkTextBuffer *buffer;
 
        gedit_debug (DEBUG_DOCUMENT);
-       
+
        buffer = GTK_TEXT_BUFFER (doc);
-       
+
        if (doc->priv->found_tag == NULL)
        {
-               doc->priv->found_tag = gtk_text_buffer_create_tag (GTK_TEXT_BUFFER (doc), 
+               doc->priv->found_tag = gtk_text_buffer_create_tag (GTK_TEXT_BUFFER (doc),
                                                                   "found",
                                                                   NULL);
 
                sync_found_tag (doc, NULL, NULL);
 
-               g_signal_connect (doc, 
+               g_signal_connect (doc,
                                  "notify::style-scheme",
                                  G_CALLBACK (sync_found_tag),
                                  NULL);
@@ -2680,7 +2680,7 @@ search_region (GeditDocument *doc,
         * syntax highlighting tags */
        text_tag_set_highest_priority (doc->priv->found_tag,
                                       GTK_TEXT_BUFFER (doc));
-                                  
+
 
        if (doc->priv->search_text == NULL)
                return;
@@ -2716,19 +2716,19 @@ search_region (GeditDocument *doc,
                return;
 
        iter = *start;
-               
+
        search_flags = GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY;
 
        if (!GEDIT_SEARCH_IS_CASE_SENSITIVE (doc->priv->search_flags))
        {
                search_flags = search_flags | GTK_TEXT_SEARCH_CASE_INSENSITIVE;
        }
-       
+
        do
        {
                if ((end != NULL) && gtk_text_iter_is_end (end))
                        end = NULL;
-                       
+
                found = gtk_text_iter_forward_search (&iter,
                                                      doc->priv->search_text,
                                                      search_flags,
@@ -2737,14 +2737,14 @@ search_region (GeditDocument *doc,
                                                      end);
 
                iter = m_end;
-                                                                       
+
                if (found && GEDIT_SEARCH_IS_ENTIRE_WORD (doc->priv->search_flags))
                {
                        gboolean word;
-                                               
-                       word = gtk_text_iter_starts_word (&m_start) && 
+
+                       word = gtk_text_iter_starts_word (&m_start) &&
                               gtk_text_iter_ends_word (&m_end);
-                               
+
                        if (!word)
                                continue;
                }
@@ -2768,11 +2768,11 @@ _gedit_document_search_region (GeditDocument     *doc,
        GeditTextRegion *region;
 
        gedit_debug (DEBUG_DOCUMENT);
-               
+
        g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
        g_return_if_fail (start != NULL);
        g_return_if_fail (end != NULL);
-       
+
        if (doc->priv->to_search_region == NULL)
                return;
 
@@ -2780,24 +2780,24 @@ _gedit_document_search_region (GeditDocument     *doc,
        g_print ("U [%u (%u), %u (%u)]\n", gtk_text_iter_get_line (start), gtk_text_iter_get_offset (start),
                                           gtk_text_iter_get_line (end), gtk_text_iter_get_offset (end));
        */
-               
+
        /* get the subregions not yet highlighted */
-       region = gedit_text_region_intersect (doc->priv->to_search_region, 
+       region = gedit_text_region_intersect (doc->priv->to_search_region,
                                              start,
                                              end);
-       if (region) 
+       if (region)
        {
                gint i;
                GtkTextIter start_search;
                GtkTextIter end_search;
 
                i = gedit_text_region_subregions (region);
-               gedit_text_region_nth_subregion (region, 
+               gedit_text_region_nth_subregion (region,
                                                 0,
                                                 &start_search,
                                                 NULL);
 
-               gedit_text_region_nth_subregion (region, 
+               gedit_text_region_nth_subregion (region,
                                                 i - 1,
                                                 NULL,
                                                 &end_search);
@@ -2810,38 +2810,38 @@ _gedit_document_search_region (GeditDocument     *doc,
 
                /* remove the just highlighted region */
                gedit_text_region_subtract (doc->priv->to_search_region,
-                                           start, 
+                                           start,
                                            end);
        }
 }
 
 static void
-insert_text_cb (GeditDocument *doc, 
+insert_text_cb (GeditDocument *doc,
                GtkTextIter   *pos,
-               const gchar   *text, 
+               const gchar   *text,
                gint           length)
 {
        GtkTextIter start;
        GtkTextIter end;
 
        gedit_debug (DEBUG_DOCUMENT);
-               
+
        start = end = *pos;
 
        /*
         * pos is invalidated when
         * insertion occurs (because the buffer contents change), but the
         * default signal handler revalidates it to point to the end of the
-        * inserted text 
+        * inserted text
         */
        gtk_text_iter_backward_chars (&start,
                                      g_utf8_strlen (text, length));
-                                    
+
        to_search_region_range (doc, &start, &end);
 }
-                                                
-static void    
-delete_range_cb (GeditDocument *doc, 
+
+static void
+delete_range_cb (GeditDocument *doc,
                 GtkTextIter   *start,
                 GtkTextIter   *end)
 {
@@ -2849,10 +2849,10 @@ delete_range_cb (GeditDocument *doc,
        GtkTextIter d_end;
 
        gedit_debug (DEBUG_DOCUMENT);
-               
+
        d_start = *start;
        d_end = *end;
-       
+
        to_search_region_range (doc, &d_start, &d_end);
 }
 
@@ -2911,12 +2911,12 @@ gedit_document_set_enable_search_highlighting (GeditDocument *doc,
                                               gboolean       enable)
 {
        g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
-       
+
        enable = enable != FALSE;
-       
+
        if ((doc->priv->to_search_region != NULL) == enable)
                return;
-       
+
        if (doc->priv->to_search_region != NULL)
        {
                /* Disable search highlighting */
@@ -2925,7 +2925,7 @@ gedit_document_set_enable_search_highlighting (GeditDocument *doc,
                        /* If needed remove the found_tag */
                        GtkTextIter begin;
                        GtkTextIter end;
-               
+
                        gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (doc),
                                                    &begin,
                                                    &end);
@@ -2935,7 +2935,7 @@ gedit_document_set_enable_search_highlighting (GeditDocument *doc,
                                                    &begin,
                                                    &end);
                }
-               
+
                gedit_text_region_destroy (doc->priv->to_search_region,
                                           TRUE);
                doc->priv->to_search_region = NULL;
@@ -2948,11 +2948,11 @@ gedit_document_set_enable_search_highlighting (GeditDocument *doc,
                        /* If search_text is not empty, highligth all its occurrences */
                        GtkTextIter begin;
                        GtkTextIter end;
-               
+
                        gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (doc),
                                                    &begin,
                                                    &end);
-                                           
+
                        to_search_region_range (doc,
                                                &begin,
                                                &end);
@@ -2964,7 +2964,7 @@ gboolean
 gedit_document_get_enable_search_highlighting (GeditDocument *doc)
 {
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
-       
+
        return (doc->priv->to_search_region != NULL);
 }
 
@@ -2990,7 +2990,7 @@ _gedit_document_set_mount_operation_factory (GeditDocument               *doc,
                                            gpointer                    userdata)
 {
        g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
-       
+
        doc->priv->mount_operation_factory = callback;
        doc->priv->mount_operation_userdata = userdata;
 }
@@ -2999,7 +2999,7 @@ GMountOperation *
 _gedit_document_create_mount_operation (GeditDocument *doc)
 {
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL);
-       
+
        if (doc->priv->mount_operation_factory == NULL)
        {
                return g_mount_operation_new ();
@@ -3133,7 +3133,7 @@ gedit_document_set_metadata (GeditDocument *doc,
        for (key = first_key; key; key = va_arg (var_args, const gchar *))
        {
                value = va_arg (var_args, const gchar *);
-               
+
                if (value != NULL)
                {
                        g_file_info_set_attribute_string (info,
@@ -3167,7 +3167,7 @@ gedit_document_set_metadata (GeditDocument *doc,
 
                g_object_unref (location);
        }
-       
+
        g_object_unref (info);
 }
 #endif
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index c25433f..9c2e98c 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -3,8 +3,8 @@
  * This file is part of gedit
  *
  * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
- * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi 
- * Copyright (C) 2002-2005 Paolo Maggi 
+ * Copyright (C) 2000, 2001 Chema Celorio, 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
@@ -18,18 +18,18 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
- 
+
 #ifndef __GEDIT_DOCUMENT_H__
 #define __GEDIT_DOCUMENT_H__
 
@@ -76,7 +76,7 @@ typedef enum
 
 typedef enum
 {
-       GEDIT_SEARCH_DONT_SET_FLAGS     = 1 << 0, 
+       GEDIT_SEARCH_DONT_SET_FLAGS     = 1 << 0,
        GEDIT_SEARCH_ENTIRE_WORD        = 1 << 1,
        GEDIT_SEARCH_CASE_SENSITIVE     = 1 << 2
 
@@ -120,11 +120,11 @@ typedef struct _GeditDocumentPrivate    GeditDocumentPrivate;
  * Main object structure
  */
 typedef struct _GeditDocument           GeditDocument;
- 
+
 struct _GeditDocument
 {
        GtkSourceBuffer buffer;
-       
+
        /*< private > */
        GeditDocumentPrivate *priv;
 };
@@ -253,7 +253,7 @@ gboolean     gedit_document_is_local        (GeditDocument       *doc);
 
 gboolean        gedit_document_get_deleted     (GeditDocument       *doc);
 
-gboolean        gedit_document_goto_line       (GeditDocument       *doc, 
+gboolean        gedit_document_goto_line       (GeditDocument       *doc,
                                                 gint                 line);
 
 gboolean        gedit_document_goto_line_offset(GeditDocument       *doc,
@@ -263,7 +263,7 @@ gboolean     gedit_document_goto_line_offset(GeditDocument       *doc,
 void            gedit_document_set_search_text (GeditDocument       *doc,
                                                 const gchar         *text,
                                                 guint                flags);
-                                                
+
 gchar          *gedit_document_get_search_text (GeditDocument       *doc,
                                                 guint               *flags);
 
@@ -275,7 +275,7 @@ gboolean     gedit_document_search_forward  (GeditDocument       *doc,
                                                 const GtkTextIter   *end,
                                                 GtkTextIter         *match_start,
                                                 GtkTextIter         *match_end);
-                                                
+
 gboolean        gedit_document_search_backward (GeditDocument       *doc,
                                                 const GtkTextIter   *start,
                                                 const GtkTextIter   *end,
@@ -283,19 +283,19 @@ gboolean   gedit_document_search_backward (GeditDocument       *doc,
                                                 GtkTextIter         *match_end);
 
 gint            gedit_document_replace_all     (GeditDocument       *doc,
-                                                const gchar         *find, 
-                                                const gchar         *replace, 
+                                                const gchar         *find,
+                                                const gchar         *replace,
                                                 guint                flags);
 
 void            gedit_document_set_language    (GeditDocument       *doc,
                                                 GtkSourceLanguage   *lang);
-GtkSourceLanguage 
+GtkSourceLanguage
                *gedit_document_get_language    (GeditDocument       *doc);
 
-const GeditEncoding 
+const GeditEncoding
                *gedit_document_get_encoding    (GeditDocument       *doc);
 
-void            gedit_document_set_enable_search_highlighting 
+void            gedit_document_set_enable_search_highlighting
                                                (GeditDocument       *doc,
                                                 gboolean             enable);
 
@@ -315,13 +315,13 @@ void               gedit_document_set_metadata    (GeditDocument       *doc,
                                                 const gchar         *first_key,
                                                 ...);
 
-/* 
+/*
  * Non exported functions
  */
 void            _gedit_document_set_readonly   (GeditDocument       *doc,
                                                 gboolean             readonly);
 
-glong           _gedit_document_get_seconds_since_last_save_or_load 
+glong           _gedit_document_get_seconds_since_last_save_or_load
                                                (GeditDocument       *doc);
 
 void            _gedit_document_apply_error_style
@@ -336,7 +336,7 @@ gboolean    _gedit_document_check_externally_modified
 void           _gedit_document_search_region   (GeditDocument       *doc,
                                                 const GtkTextIter   *start,
                                                 const GtkTextIter   *end);
-                                                 
+
 /* Search macros */
 #define GEDIT_SEARCH_IS_DONT_SET_FLAGS(sflags) ((sflags & GEDIT_SEARCH_DONT_SET_FLAGS) != 0)
 #define GEDIT_SEARCH_SET_DONT_SET_FLAGS(sflags,state) ((state == TRUE) ? \
@@ -355,7 +355,7 @@ void                _gedit_document_search_region   (GeditDocument       *doc,
  * @doc:
  * @userdata:
  */
-typedef GMountOperation *(*GeditMountOperationFactory)(GeditDocument *doc, 
+typedef GMountOperation *(*GeditMountOperationFactory)(GeditDocument *doc,
                                                       gpointer       userdata);
 
 void            _gedit_document_set_mount_operation_factory
diff --git a/gedit/gedit-documents-panel.h b/gedit/gedit-documents-panel.h
index fdf037f..82c5843 100644
--- a/gedit/gedit-documents-panel.h
+++ b/gedit/gedit-documents-panel.h
@@ -2,7 +2,7 @@
  * gedit-documents-panel.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -55,7 +55,7 @@ typedef struct _GeditDocumentsPanelPrivate GeditDocumentsPanelPrivate;
  */
 typedef struct _GeditDocumentsPanel GeditDocumentsPanel;
 
-struct _GeditDocumentsPanel 
+struct _GeditDocumentsPanel
 {
        GtkBox vbox;
 
@@ -68,7 +68,7 @@ struct _GeditDocumentsPanel
  */
 typedef struct _GeditDocumentsPanelClass GeditDocumentsPanelClass;
 
-struct _GeditDocumentsPanelClass 
+struct _GeditDocumentsPanelClass
 {
        GtkBoxClass parent_class;
 };
diff --git a/gedit/gedit-encodings-combo-box.c b/gedit/gedit-encodings-combo-box.c
index e5ce99d..1d1514b 100644
--- a/gedit/gedit-encodings-combo-box.c
+++ b/gedit/gedit-encodings-combo-box.c
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2003-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2003-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id: gedit-encodings-combo-box.c 6112 2008-01-23 08:26:24Z sfre $
  */
@@ -111,7 +111,7 @@ gedit_encodings_combo_box_get_property (GObject    *object,
        combo = GEDIT_ENCODINGS_COMBO_BOX (object);
 
        switch (prop_id)
-       {       
+       {
                case PROP_SAVE_MODE:
                        g_value_set_boolean (value, combo->priv->save_mode);
                        break;
diff --git a/gedit/gedit-encodings-combo-box.h b/gedit/gedit-encodings-combo-box.h
index a130dd8..94b6eac 100644
--- a/gedit/gedit-encodings-combo-box.h
+++ b/gedit/gedit-encodings-combo-box.h
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2003-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2003-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id: gedit-encodings-option-menu.h 4429 2005-12-12 17:28:04Z pborelli $
  */
diff --git a/gedit/gedit-encodings-dialog.c b/gedit/gedit-encodings-dialog.c
index 8b20a62..af3f339 100644
--- a/gedit/gedit-encodings-dialog.c
+++ b/gedit/gedit-encodings-dialog.c
@@ -2,7 +2,7 @@
  * gedit-encodings-dialog.c
  * This file is part of gedit
  *
- * 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -105,7 +105,7 @@ enum {
 static void
 count_selected_items_func (GtkTreeModel *model,
                           GtkTreePath  *path,
-                          GtkTreeIter  *iter, 
+                          GtkTreeIter  *iter,
                           gpointer      data)
 {
        int *count = data;
@@ -144,7 +144,7 @@ displayed_selection_changed_callback (GtkTreeSelection     *selection,
 static void
 get_selected_encodings_func (GtkTreeModel *model,
                             GtkTreePath  *path,
-                            GtkTreeIter  *iter, 
+                            GtkTreeIter  *iter,
                             gpointer      data)
 {
        GSList **list = data;
@@ -234,7 +234,7 @@ remove_button_clicked_callback (GtkWidget            *button,
                                             &encodings);
 
        tmp = encodings;
-       while (tmp != NULL) 
+       while (tmp != NULL)
        {
                dialog->priv->show_in_menu_list = g_slist_remove (dialog->priv->show_in_menu_list,
                                                                  tmp->data);
@@ -283,7 +283,7 @@ init_shown_in_menu_tree_model (GeditEncodingsDialog *dialog)
        g_slist_free (list);
 }
 
-static void 
+static void
 response_handler (GtkDialog            *dialog,
                  gint                  response_id,
                   GeditEncodingsDialog *dlg)
@@ -330,11 +330,11 @@ gedit_encodings_dialog_init (GeditEncodingsDialog *dlg)
        };
 
        dlg->priv = GEDIT_ENCODINGS_DIALOG_GET_PRIVATE (dlg);
-       
+
        dlg->priv->enc_settings = g_settings_new ("org.gnome.gedit.preferences.encodings");
-       
+
        gtk_dialog_add_buttons (GTK_DIALOG (dlg),
-                               GTK_STOCK_CANCEL, 
+                               GTK_STOCK_CANCEL,
                                GTK_RESPONSE_CANCEL,
                                GTK_STOCK_OK,
                                GTK_RESPONSE_OK,
@@ -412,7 +412,7 @@ gedit_encodings_dialog_init (GeditEncodingsDialog *dlg)
 
        /* Add the data */
        i = 0;
-       while ((enc = gedit_encoding_get_from_index (i)) != NULL) 
+       while ((enc = gedit_encoding_get_from_index (i)) != NULL)
        {
                gtk_list_store_append (dlg->priv->available_liststore,
                                       &parent_iter);
diff --git a/gedit/gedit-encodings-dialog.h b/gedit/gedit-encodings-dialog.h
index c4f60e9..8addd60 100644
--- a/gedit/gedit-encodings-dialog.h
+++ b/gedit/gedit-encodings-dialog.h
@@ -2,7 +2,7 @@
  * gedit-encodings-dialog.h
  * This file is part of gedit
  *
- * Copyright (C) 2003-2005 Paolo Maggi 
+ * Copyright (C) 2003-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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2003-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2003-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -55,7 +55,7 @@ typedef struct _GeditEncodingsDialogPrivate GeditEncodingsDialogPrivate;
  */
 typedef struct _GeditEncodingsDialog GeditEncodingsDialog;
 
-struct _GeditEncodingsDialog 
+struct _GeditEncodingsDialog
 {
        GtkDialog dialog;
 
@@ -68,7 +68,7 @@ struct _GeditEncodingsDialog
  */
 typedef struct _GeditEncodingsDialogClass GeditEncodingsDialogClass;
 
-struct _GeditEncodingsDialogClass 
+struct _GeditEncodingsDialogClass
 {
        GtkDialogClass parent_class;
 };
diff --git a/gedit/gedit-encodings.c b/gedit/gedit-encodings.c
index 563c2eb..ebe31fc 100644
--- a/gedit/gedit-encodings.c
+++ b/gedit/gedit-encodings.c
@@ -2,7 +2,7 @@
  * gedit-encodings.c
  * This file is part of gedit
  *
- * 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -50,8 +50,8 @@ G_DEFINE_BOXED_TYPE (GeditEncoding, gedit_encoding,
                      gedit_encoding_copy,
                      gedit_encoding_free)
 
-/* 
- * The original versions of the following tables are taken from profterm 
+/*
+ * The original versions of the following tables are taken from profterm
  *
  * Copyright (C) 2002 Red Hat, Inc.
  */
@@ -112,7 +112,7 @@ typedef enum
   GEDIT_ENCODING_KOI8_R,
   GEDIT_ENCODING_KOI8__R,
   GEDIT_ENCODING_KOI8_U,
-  
+
   GEDIT_ENCODING_SHIFT_JIS,
   GEDIT_ENCODING_TCVN,
   GEDIT_ENCODING_TIS_620,
@@ -133,7 +133,7 @@ typedef enum
 
   GEDIT_ENCODING_UTF_8,
   GEDIT_ENCODING_UNKNOWN
-  
+
 } GeditEncodingIndex;
 
 static const GeditEncoding utf8_encoding =  {
@@ -145,8 +145,8 @@ static const GeditEncoding utf8_encoding =  {
 /* initialized in gedit_encoding_lazy_init() */
 static GeditEncoding unknown_encoding = {
        GEDIT_ENCODING_UNKNOWN,
-       NULL, 
-       NULL 
+       NULL,
+       NULL
 };
 
 static const GeditEncoding encodings [] = {
@@ -252,7 +252,7 @@ static const GeditEncoding encodings [] = {
     "KOI8-R", N_("Cyrillic") },
   { GEDIT_ENCODING_KOI8_U,
     "KOI8U", N_("Cyrillic/Ukrainian") },
-  
+
   { GEDIT_ENCODING_SHIFT_JIS,
     "SHIFT_JIS", N_("Japanese") },
   { GEDIT_ENCODING_TCVN,
@@ -316,12 +316,12 @@ gedit_encoding_get_from_charset (const gchar *charset)
        if (g_ascii_strcasecmp (charset, "UTF-8") == 0)
                return gedit_encoding_get_utf8 ();
 
-       i = 0; 
+       i = 0;
        while (i < GEDIT_ENCODING_LAST)
        {
                if (g_ascii_strcasecmp (charset, encodings[i].charset) == 0)
                        return &encodings[i];
-      
+
                ++i;
        }
 
@@ -368,17 +368,17 @@ gedit_encoding_get_current (void)
        if (initialized != FALSE)
                return locale_encoding;
 
-       if (g_get_charset (&locale_charset) == FALSE) 
+       if (g_get_charset (&locale_charset) == FALSE)
        {
                g_return_val_if_fail (locale_charset != NULL, &utf8_encoding);
-               
+
                locale_encoding = gedit_encoding_get_from_charset (locale_charset);
        }
        else
        {
                locale_encoding = &utf8_encoding;
        }
-       
+
        if (locale_encoding == NULL)
        {
                locale_encoding = &unknown_encoding;
@@ -395,7 +395,7 @@ gchar *
 gedit_encoding_to_string (const GeditEncoding* enc)
 {
        g_return_val_if_fail (enc != NULL, NULL);
-       
+
        gedit_encoding_lazy_init ();
 
        g_return_val_if_fail (enc->charset != NULL, NULL);
@@ -447,7 +447,7 @@ gedit_encoding_copy (const GeditEncoding *enc)
        return (GeditEncoding *) enc;
 }
 
-void 
+void
 gedit_encoding_free (GeditEncoding *enc)
 {
        g_return_if_fail (enc != NULL);
@@ -474,7 +474,7 @@ _gedit_encoding_strv_to_list (const gchar * const *enc_str)
        GSList *res = NULL;
        gchar **p;
        const GeditEncoding *enc;
-       
+
        for (p = (gchar **)enc_str; p != NULL && *p != NULL; p++)
        {
                const gchar *charset = *p;
@@ -508,7 +508,7 @@ _gedit_encoding_list_to_strv (const GSList *enc_list)
        {
                const GeditEncoding *enc;
                const gchar *charset;
-               
+
                enc = (const GeditEncoding *)l->data;
 
                charset = gedit_encoding_get_charset (enc);
diff --git a/gedit/gedit-encodings.h b/gedit/gedit-encodings.h
index dbd563b..aa0cf4a 100644
--- a/gedit/gedit-encodings.h
+++ b/gedit/gedit-encodings.h
@@ -2,7 +2,7 @@
  * gedit-encodings.h
  * This file is part of gedit
  *
- * 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
diff --git a/gedit/gedit-file-chooser-dialog.c b/gedit/gedit-file-chooser-dialog.c
index fd521f0..c21736f 100644
--- a/gedit/gedit-file-chooser-dialog.c
+++ b/gedit/gedit-file-chooser-dialog.c
@@ -359,7 +359,7 @@ static void
 gedit_file_chooser_dialog_init (GeditFileChooserDialog *dialog)
 {
        dialog->priv = GEDIT_FILE_CHOOSER_DIALOG_GET_PRIVATE (dialog);
-       
+
        dialog->priv->filter_settings = g_settings_new ("org.gnome.gedit.state.file-filter");
 }
 
diff --git a/gedit/gedit-file-chooser-dialog.h b/gedit/gedit-file-chooser-dialog.h
index d537e20..07bcc45 100644
--- a/gedit/gedit-file-chooser-dialog.h
+++ b/gedit/gedit-file-chooser-dialog.h
@@ -2,7 +2,7 @@
  * gedit-file-chooser-dialog.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
diff --git a/gedit/gedit-history-entry.h b/gedit/gedit-history-entry.h
index ac6de1b..e67a458 100644
--- a/gedit/gedit-history-entry.h
+++ b/gedit/gedit-history-entry.h
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2006. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2006. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -76,11 +76,11 @@ void                 gedit_history_entry_set_history_length (GeditHistoryEntry *entry,
 
 guint           gedit_history_entry_get_history_length (GeditHistoryEntry *gentry);
 
-void             gedit_history_entry_set_enable_completion 
+void             gedit_history_entry_set_enable_completion
                                                        (GeditHistoryEntry *entry,
                                                         gboolean           enable);
-                                                        
-gboolean         gedit_history_entry_get_enable_completion 
+
+gboolean         gedit_history_entry_get_enable_completion
                                                        (GeditHistoryEntry *entry);
 
 GtkWidget      *gedit_history_entry_get_entry          (GeditHistoryEntry *entry);
diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c
index 64b595e..6ac7d90 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -2,7 +2,7 @@
  * gedit-io-error-info-bar.c
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,18 +16,18 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
- 
+
 /*
  * Verbose error reporting for file I/O operations (load, save, revert, create)
  */
@@ -88,7 +88,7 @@ set_contents (GtkWidget *area,
              GtkWidget *contents)
 {
        GtkWidget *content_area;
-       
+
        content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (area));
        gtk_container_add (GTK_CONTAINER (content_area), contents);
 }
@@ -189,8 +189,8 @@ create_io_loading_error_info_bar (const gchar *primary_text,
 
 static gboolean
 parse_gio_error (gint          code,
-                gchar       **error_message, 
-                gchar       **message_details, 
+                gchar       **error_message,
+                gchar       **message_details,
                 GFile        *location,
                 const gchar  *uri_for_display)
 {
@@ -228,7 +228,7 @@ parse_gio_error (gint          code,
                                else
                                {
                                        *message_details = g_strdup (_("gedit cannot handle this location."));
-                               }       
+                               }
 
                                g_free (scheme_string);
                        }
@@ -237,25 +237,25 @@ parse_gio_error (gint          code,
                case G_IO_ERROR_NOT_MOUNTABLE_FILE:
                        *message_details = g_strdup (_("The location of the file cannot be mounted."));
                        break;
-       
+
                case G_IO_ERROR_NOT_MOUNTED:
                        *message_details = g_strdup( _("The location of the file cannot be accessed because 
it is not mounted."));
 
-                       break;  
+                       break;
                case G_IO_ERROR_IS_DIRECTORY:
                        *error_message = g_strdup_printf (_("%s is a directory."),
                                                         uri_for_display);
                        *message_details = g_strdup (_("Please check that you typed the "
                                                      "location correctly and try again."));
                        break;
-               
+
                case G_IO_ERROR_INVALID_FILENAME:
                        *error_message = g_strdup_printf (_("%s is not a valid location."),
                                                         uri_for_display);
                        *message_details = g_strdup (_("Please check that you typed the "
                                                      "location correctly and try again."));
                        break;
-               
+
                case G_IO_ERROR_HOST_NOT_FOUND:
                        /* This case can be hit for user-typed strings like "foo" due to
                         * the code that guesses web addresses when there's no initial "/".
@@ -296,7 +296,7 @@ parse_gio_error (gint          code,
                                }
 
                                g_free (uri);
-                       
+
                                if (!*message_details)
                                {
                                        /* use the same string as INVALID_HOST */
@@ -327,8 +327,8 @@ parse_gio_error (gint          code,
 
 static gboolean
 parse_gedit_error (gint          code,
-                  gchar       **error_message, 
-                  gchar       **message_details, 
+                  gchar       **error_message,
+                  gchar       **message_details,
                   GFile        *location,
                   const gchar  *uri_for_display)
 {
@@ -349,9 +349,9 @@ parse_gedit_error (gint          code,
 }
 
 static void
-parse_error (const GError *error, 
-            gchar       **error_message, 
-            gchar       **message_details, 
+parse_error (const GError *error,
+            gchar       **error_message,
+            gchar       **message_details,
             GFile        *location,
             const gchar  *uri_for_display)
 {
@@ -373,12 +373,12 @@ parse_error (const GError *error,
                                         location,
                                         uri_for_display);
        }
-       
+
        if (!ret)
        {
-               g_warning ("Hit unhandled case %d (%s) in %s.", 
+               g_warning ("Hit unhandled case %d (%s) in %s.",
                           error->code, error->message, G_STRFUNC);
-               *message_details = g_strdup_printf (_("Unexpected error: %s"), 
+               *message_details = g_strdup_printf (_("Unexpected error: %s"),
                                                    error->message);
        }
 }
@@ -396,7 +396,7 @@ gedit_unrecoverable_reverting_error_info_bar_new (GFile        *location,
 
        g_return_val_if_fail (G_IS_FILE (location), NULL);
        g_return_val_if_fail (error != NULL, NULL);
-       g_return_val_if_fail ((error->domain == GEDIT_DOCUMENT_ERROR) || 
+       g_return_val_if_fail ((error->domain == GEDIT_DOCUMENT_ERROR) ||
                              (error->domain == G_IO_ERROR), NULL);
 
        full_formatted_uri = g_file_get_parse_name (location);
@@ -456,8 +456,8 @@ create_combo_box (GtkWidget *info_bar,
        g_free (label_markup);
        gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
        menu = gedit_encodings_combo_box_new (TRUE);
-       g_object_set_data (G_OBJECT (info_bar), 
-                          "gedit-info-bar-encoding-menu", 
+       g_object_set_data (G_OBJECT (info_bar),
+                          "gedit-info-bar-encoding-menu",
                           menu);
 
        gtk_label_set_mnemonic_widget (GTK_LABEL (label), menu);
@@ -526,7 +526,7 @@ create_conversion_error_info_bar (const gchar *primary_text,
 
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
        gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0);
-       
+
        primary_markup = g_strdup_printf ("<b>%s</b>", primary_text);
        primary_label = gtk_label_new (primary_markup);
        g_free (primary_markup);
@@ -572,7 +572,7 @@ gedit_io_loading_error_info_bar_new (GFile               *location,
        GtkWidget *info_bar;
        gboolean edit_anyway = FALSE;
        gboolean convert_error = FALSE;
-       
+
        g_return_val_if_fail (error != NULL, NULL);
        g_return_val_if_fail ((error->domain == G_CONVERT_ERROR) ||
                              (error->domain == GEDIT_DOCUMENT_ERROR) ||
@@ -594,7 +594,7 @@ gedit_io_loading_error_info_bar_new (GFile               *location,
        temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri,
                                                                MAX_URI_IN_DIALOG_LENGTH);
        g_free (full_formatted_uri);
-       
+
        uri_for_display = g_markup_printf_escaped ("<i>%s</i>", temp_uri_for_display);
        g_free (temp_uri_for_display);
 
@@ -637,7 +637,7 @@ gedit_io_loading_error_info_bar_new (GFile               *location,
        else if (is_gio_error (error, G_IO_ERROR_INVALID_DATA) && encoding != NULL)
        {
                error_message = g_strdup_printf (_("Could not open the file %s using the %s character 
encoding."),
-                                                uri_for_display, 
+                                                uri_for_display,
                                                 encoding_name);
                message_details = g_strconcat (_("Please check that you are not trying to open a binary 
file."), "\n",
                                               _("Select a different character encoding from the menu and try 
again."), NULL);
@@ -671,7 +671,7 @@ gedit_io_loading_error_info_bar_new (GFile               *location,
        g_free (encoding_name);
        g_free (error_message);
        g_free (message_details);
-       
+
        return info_bar;
 }
 
@@ -687,35 +687,35 @@ gedit_conversion_error_while_saving_info_bar_new (GFile               *location,
        gchar *uri_for_display;
        gchar *temp_uri_for_display;
        GtkWidget *info_bar;
-       
+
        g_return_val_if_fail (G_IS_FILE (location), NULL);
        g_return_val_if_fail (error != NULL, NULL);
        g_return_val_if_fail (error->domain == G_CONVERT_ERROR ||
                              error->domain == G_IO_ERROR, NULL);
        g_return_val_if_fail (encoding != NULL, NULL);
-       
+
        full_formatted_uri = g_file_get_parse_name (location);
 
        /* Truncate the URI so it doesn't get insanely wide. Note that even
         * though the dialog uses wrapped text, if the URI doesn't contain
         * white space then the text-wrapping code is too stupid to wrap it.
         */
-       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri, 
+       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri,
                                                                MAX_URI_IN_DIALOG_LENGTH);
        g_free (full_formatted_uri);
-       
+
        uri_for_display = g_markup_printf_escaped ("<i>%s</i>", temp_uri_for_display);
        g_free (temp_uri_for_display);
 
        encoding_name = gedit_encoding_to_string (encoding);
-       
+
        error_message = g_strdup_printf (_("Could not save the file %s using the %s character encoding."),
-                                        uri_for_display, 
+                                        uri_for_display,
                                         encoding_name);
        message_details = g_strconcat (_("The document contains one or more characters that cannot be encoded 
"
                                         "using the specified character encoding."), "\n",
                                       _("Select a different character encoding from the menu and try 
again."), NULL);
-       
+
        info_bar = create_conversion_error_info_bar (error_message,
                                                     message_details,
                                                     FALSE);
@@ -724,7 +724,7 @@ gedit_conversion_error_while_saving_info_bar_new (GFile               *location,
        g_free (encoding_name);
        g_free (error_message);
        g_free (message_details);
-       
+
        return info_bar;
 }
 
@@ -735,8 +735,8 @@ gedit_conversion_error_info_bar_get_encoding (GtkWidget *info_bar)
 
        g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL);
 
-       menu = g_object_get_data (G_OBJECT (info_bar), 
-                                 "gedit-info-bar-encoding-menu");      
+       menu = g_object_get_data (G_OBJECT (info_bar),
+                                 "gedit-info-bar-encoding-menu");
        if (menu != NULL)
        {
                return gedit_encodings_combo_box_get_selected_encoding (GEDIT_ENCODINGS_COMBO_BOX (menu));
@@ -770,10 +770,10 @@ gedit_file_already_open_warning_info_bar_new (GFile *location)
         * though the dialog uses wrapped text, if the URI doesn't contain
         * white space then the text-wrapping code is too stupid to wrap it.
         */
-       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri, 
+       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri,
                                                                MAX_URI_IN_DIALOG_LENGTH);
        g_free (full_formatted_uri);
-       
+
        uri_for_display = g_markup_printf_escaped ("<i>%s</i>", temp_uri_for_display);
        g_free (temp_uri_for_display);
 
@@ -802,7 +802,7 @@ gedit_file_already_open_warning_info_bar_new (GFile *location)
 
        primary_text = g_strdup_printf (_("This file (%s) is already open in another gedit window."), 
uri_for_display);
        g_free (uri_for_display);
-       
+
        primary_markup = g_strdup_printf ("<b>%s</b>", primary_text);
        g_free (primary_text);
        primary_label = gtk_label_new (primary_markup);
@@ -862,7 +862,7 @@ gedit_externally_modified_saving_error_info_bar_new (GFile        *location,
         * though the dialog uses wrapped text, if the URI doesn't contain
         * white space then the text-wrapping code is too stupid to wrap it.
         */
-       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri, 
+       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri,
                                                                MAX_URI_IN_DIALOG_LENGTH);
        g_free (full_formatted_uri);
 
@@ -870,7 +870,7 @@ gedit_externally_modified_saving_error_info_bar_new (GFile        *location,
        g_free (temp_uri_for_display);
 
        info_bar = gtk_info_bar_new ();
-       
+
        info_bar_add_stock_button_with_text (GTK_INFO_BAR (info_bar),
                                             _("S_ave Anyway"),
                                             GTK_STOCK_SAVE,
@@ -960,7 +960,7 @@ gedit_no_backup_saving_error_info_bar_new (GFile        *location,
         * though the dialog uses wrapped text, if the URI doesn't contain
         * white space then the text-wrapping code is too stupid to wrap it.
         */
-       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri, 
+       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri,
                                                                MAX_URI_IN_DIALOG_LENGTH);
        g_free (full_formatted_uri);
 
@@ -968,7 +968,7 @@ gedit_no_backup_saving_error_info_bar_new (GFile        *location,
        g_free (temp_uri_for_display);
 
        info_bar = gtk_info_bar_new ();
-       
+
        info_bar_add_stock_button_with_text (GTK_INFO_BAR (info_bar),
                                             _("S_ave Anyway"),
                                             GTK_STOCK_SAVE,
@@ -1054,7 +1054,7 @@ gedit_unrecoverable_saving_error_info_bar_new (GFile        *location,
 
        g_return_val_if_fail (G_IS_FILE (location), NULL);
        g_return_val_if_fail (error != NULL, NULL);
-       g_return_val_if_fail ((error->domain == GEDIT_DOCUMENT_ERROR) || 
+       g_return_val_if_fail ((error->domain == GEDIT_DOCUMENT_ERROR) ||
                              (error->domain == G_IO_ERROR), NULL);
 
        full_formatted_uri = g_file_get_parse_name (location);
@@ -1063,7 +1063,7 @@ gedit_unrecoverable_saving_error_info_bar_new (GFile        *location,
         * though the dialog uses wrapped text, if the URI doesn't contain
         * white space then the text-wrapping code is too stupid to wrap it.
         */
-       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri, 
+       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri,
                                                                MAX_URI_IN_DIALOG_LENGTH);
        g_free (full_formatted_uri);
 
@@ -1139,9 +1139,9 @@ gedit_unrecoverable_saving_error_info_bar_new (GFile        *location,
        }
        else
        {
-               parse_error (error, 
-                            &error_message, 
-                            &message_details, 
+               parse_error (error,
+                            &error_message,
+                            &message_details,
                             location,
                             uri_for_display);
        }
@@ -1182,7 +1182,7 @@ gedit_externally_modified_info_bar_new (GFile    *location,
         * though the dialog uses wrapped text, if the URI doesn't contain
         * white space then the text-wrapping code is too stupid to wrap it.
         */
-       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri, 
+       temp_uri_for_display = gedit_utils_str_middle_truncate (full_formatted_uri,
                                                                MAX_URI_IN_DIALOG_LENGTH);
        g_free (full_formatted_uri);
 
@@ -1203,7 +1203,7 @@ gedit_externally_modified_info_bar_new (GFile    *location,
                secondary_text = _("Do you want to reload the file?");
 
        info_bar = gtk_info_bar_new ();
-       
+
        info_bar_add_stock_button_with_text (GTK_INFO_BAR (info_bar),
                                             _("_Reload"),
                                             GTK_STOCK_REFRESH,
@@ -1257,7 +1257,7 @@ gedit_invalid_character_info_bar_new (GFile *location)
        g_free (temp_uri_for_display);
 
        info_bar = gtk_info_bar_new ();
-       
+
        info_bar_add_stock_button_with_text (GTK_INFO_BAR (info_bar),
                                             _("S_ave Anyway"),
                                             GTK_STOCK_SAVE,
diff --git a/gedit/gedit-io-error-info-bar.h b/gedit/gedit-io-error-info-bar.h
index ecf5ff6..16a2923 100644
--- a/gedit/gedit-io-error-info-bar.h
+++ b/gedit/gedit-io-error-info-bar.h
@@ -2,7 +2,7 @@
  * gedit-io-error-info-bar.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -46,7 +46,7 @@ GtkWidget     *gedit_conversion_error_while_saving_info_bar_new       (GFile
                                                                         const GeditEncoding *encoding,
                                                                         const GError        *error);
 
-const GeditEncoding 
+const GeditEncoding
                *gedit_conversion_error_info_bar_get_encoding           (GtkWidget           *info_bar);
 
 GtkWidget      *gedit_file_already_open_warning_info_bar_new           (GFile               *location);
diff --git a/gedit/gedit-metadata-manager.c b/gedit/gedit-metadata-manager.c
index 396731c..31c4506 100644
--- a/gedit/gedit-metadata-manager.c
+++ b/gedit/gedit-metadata-manager.c
@@ -3,7 +3,7 @@
  * gedit-metadata-manager.c
  * This file is part of gedit
  *
- * Copyright (C) 2003-2007  Paolo Maggi 
+ * Copyright (C) 2003-2007  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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2003-2007. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2003-2007. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #include <time.h>
@@ -49,10 +49,10 @@ struct _Item
 
        GHashTable      *values;
 };
-       
+
 struct _GeditMetadataManager
 {
-       gboolean         values_loaded; /* It is true if the file 
+       gboolean         values_loaded; /* It is true if the file
                                           has been read */
 
        guint            timeout_id;
@@ -71,7 +71,7 @@ static void
 item_free (gpointer data)
 {
        Item *item;
-       
+
        g_return_if_fail (data != NULL);
 
 #ifdef GEDIT_METADATA_VERBOSE_DEBUG
@@ -91,7 +91,7 @@ gedit_metadata_manager_arm_timeout (void)
 {
        if (gedit_metadata_manager->timeout_id == 0)
        {
-               gedit_metadata_manager->timeout_id = 
+               gedit_metadata_manager->timeout_id =
                        g_timeout_add_seconds_full (G_PRIORITY_DEFAULT_IDLE,
                                                    2,
                                                    (GSourceFunc)gedit_metadata_manager_save,
@@ -119,9 +119,9 @@ gedit_metadata_manager_init (const gchar *metadata_filename)
 
        gedit_metadata_manager->values_loaded = FALSE;
 
-       gedit_metadata_manager->items = 
-               g_hash_table_new_full (g_str_hash, 
-                                      g_str_equal, 
+       gedit_metadata_manager->items =
+               g_hash_table_new_full (g_str_hash,
+                                      g_str_equal,
                                       g_free,
                                       item_free);
 
@@ -164,13 +164,13 @@ static void
 parseItem (xmlDocPtr doc, xmlNodePtr cur)
 {
        Item *item;
-       
+
        xmlChar *uri;
        xmlChar *atime;
-       
+
 #ifdef GEDIT_METADATA_VERBOSE_DEBUG
        gedit_debug (DEBUG_METADATA);
-#endif 
+#endif
 
        if (xmlStrcmp (cur->name, (const xmlChar *)"document") != 0)
                        return;
@@ -178,7 +178,7 @@ parseItem (xmlDocPtr doc, xmlNodePtr cur)
        uri = xmlGetProp (cur, (const xmlChar *)"uri");
        if (uri == NULL)
                return;
-       
+
        atime = xmlGetProp (cur, (const xmlChar *)"atime");
        if (atime == NULL)
        {
@@ -190,9 +190,9 @@ parseItem (xmlDocPtr doc, xmlNodePtr cur)
 
        item->atime = g_ascii_strtoull ((char *)atime, NULL, 0);
 
-       item->values = g_hash_table_new_full (g_str_hash, 
-                                             g_str_equal, 
-                                             g_free, 
+       item->values = g_hash_table_new_full (g_str_hash,
+                                             g_str_equal,
+                                             g_free,
                                              g_free);
 
        cur = cur->xmlChildrenNode;
@@ -210,7 +210,7 @@ parseItem (xmlDocPtr doc, xmlNodePtr cur)
                        if ((key != NULL) && (value != NULL))
                        {
                                g_hash_table_insert (item->values,
-                                                    g_strdup ((gchar *)key), 
+                                                    g_strdup ((gchar *)key),
                                                     g_strdup ((gchar *)value));
                        }
 
@@ -243,7 +243,7 @@ load_values (void)
        g_return_val_if_fail (gedit_metadata_manager->values_loaded == FALSE, FALSE);
 
        gedit_metadata_manager->values_loaded = TRUE;
-               
+
        xmlKeepBlanksDefault (0);
 
        /* FIXME: file locking - Paolo */
@@ -261,27 +261,27 @@ load_values (void)
        }
 
        cur = xmlDocGetRootElement (doc);
-       if (cur == NULL) 
+       if (cur == NULL)
        {
                g_message ("The metadata file '%s' is empty",
                           g_path_get_basename (gedit_metadata_manager->metadata_filename));
                xmlFreeDoc (doc);
-       
+
                return FALSE;
        }
 
-       if (xmlStrcmp (cur->name, (const xmlChar *) "metadata")) 
+       if (xmlStrcmp (cur->name, (const xmlChar *) "metadata"))
        {
                g_message ("File '%s' is of the wrong type",
                           g_path_get_basename (gedit_metadata_manager->metadata_filename));
                xmlFreeDoc (doc);
-               
+
                return FALSE;
        }
 
        cur = xmlDocGetRootElement (doc);
        cur = cur->xmlChildrenNode;
-       
+
        while (cur != NULL)
        {
                parseItem (doc, cur);
@@ -338,7 +338,7 @@ gedit_metadata_manager_get (GFile       *location,
                return NULL;
 
        item->atime = time (NULL);
-       
+
        if (item->values == NULL)
                return NULL;
 
@@ -394,15 +394,15 @@ gedit_metadata_manager_set (GFile       *location,
                                     g_strdup (uri),
                                     item);
        }
-       
+
        if (item->values == NULL)
        {
-                item->values = g_hash_table_new_full (g_str_hash, 
-                                                      g_str_equal, 
-                                                      g_free, 
+                item->values = g_hash_table_new_full (g_str_hash,
+                                                      g_str_equal,
+                                                      g_free,
                                                       g_free);
        }
-       
+
        if (value != NULL)
        {
                g_hash_table_insert (item->values,
@@ -429,13 +429,13 @@ save_values (const gchar *key, const gchar *value, xmlNodePtr parent)
 
 #ifdef GEDIT_METADATA_VERBOSE_DEBUG
        gedit_debug (DEBUG_METADATA);
-#endif 
+#endif
 
        g_return_if_fail (key != NULL);
-       
+
        if (value == NULL)
                return;
-               
+
        xml_node = xmlNewChild (parent,
                                NULL,
                                (const xmlChar *)"entry",
@@ -450,7 +450,7 @@ save_values (const gchar *key, const gchar *value, xmlNodePtr parent)
 
 #ifdef GEDIT_METADATA_VERBOSE_DEBUG
        gedit_debug_message (DEBUG_METADATA, "entry: %s = %s", key, value);
-#endif 
+#endif
 }
 
 static void
@@ -475,14 +475,14 @@ save_item (const gchar *key, const gpointer *data, xmlNodePtr parent)
 
 #ifdef GEDIT_METADATA_VERBOSE_DEBUG
        gedit_debug_message (DEBUG_METADATA, "uri: %s", key);
-#endif 
+#endif
 
        atime = g_strdup_printf ("%ld", item->atime);
-       xmlSetProp (xml_node, (const xmlChar *)"atime", (const xmlChar *)atime);        
+       xmlSetProp (xml_node, (const xmlChar *)"atime", (const xmlChar *)atime);
 
 #ifdef GEDIT_METADATA_VERBOSE_DEBUG
        gedit_debug_message (DEBUG_METADATA, "atime: %s", atime);
-#endif 
+#endif
 
        g_free (atime);
 
@@ -502,7 +502,7 @@ get_oldest (const gchar *key, const gpointer value, const gchar ** key_to_remove
        }
        else
        {
-               const Item *item_to_remove = 
+               const Item *item_to_remove =
                        g_hash_table_lookup (gedit_metadata_manager->items,
                                             *key_to_remove);
 
@@ -512,7 +512,7 @@ get_oldest (const gchar *key, const gpointer value, const gchar ** key_to_remove
                {
                        *key_to_remove = key;
                }
-       }       
+       }
 }
 
 static void
@@ -527,7 +527,7 @@ resize_items (void)
                                      &key_to_remove);
 
                g_return_if_fail (key_to_remove != NULL);
-               
+
                g_hash_table_remove (gedit_metadata_manager->items,
                                     key_to_remove);
        }
@@ -535,7 +535,7 @@ resize_items (void)
 
 static gboolean
 gedit_metadata_manager_save (gpointer data)
-{      
+{
        xmlDocPtr  doc;
        xmlNodePtr root;
 
@@ -544,7 +544,7 @@ gedit_metadata_manager_save (gpointer data)
        gedit_metadata_manager->timeout_id = 0;
 
        resize_items ();
-               
+
        xmlIndentTreeOutput = TRUE;
 
        doc = xmlNewDoc ((const xmlChar *)"1.0");
@@ -557,7 +557,7 @@ gedit_metadata_manager_save (gpointer data)
 
        g_hash_table_foreach (gedit_metadata_manager->items,
                              (GHFunc)save_item,
-                             root);        
+                             root);
 
        /* FIXME: lock file - Paolo */
        if (gedit_metadata_manager->metadata_filename != NULL)
@@ -578,7 +578,7 @@ gedit_metadata_manager_save (gpointer data)
                g_free (cache_dir);
        }
 
-       xmlFreeDoc (doc); 
+       xmlFreeDoc (doc);
 
        gedit_debug_message (DEBUG_METADATA, "DONE");
 
diff --git a/gedit/gedit-metadata-manager.h b/gedit/gedit-metadata-manager.h
index 1208fcf..371cbc5 100644
--- a/gedit/gedit-metadata-manager.h
+++ b/gedit/gedit-metadata-manager.h
@@ -3,7 +3,7 @@
  * gedit-metadata-manager.h
  * This file is part of gedit
  *
- * Copyright (C) 2003  Paolo Maggi 
+ * Copyright (C) 2003  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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2003. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2003. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifndef __GEDIT_METADATA_MANAGER_H__
diff --git a/gedit/gedit-multi-notebook.c b/gedit/gedit-multi-notebook.c
index 31dd60d..27d2c46 100644
--- a/gedit/gedit-multi-notebook.c
+++ b/gedit/gedit-multi-notebook.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -237,7 +237,7 @@ notebook_show_popup_menu (GtkNotebook        *notebook,
        g_signal_emit (G_OBJECT (mnb), signals[SHOW_POPUP_MENU], 0, event, tab);
 }
 
-static void 
+static void
 notebook_tab_close_request (GeditNotebook      *notebook,
                            GeditTab           *tab,
                            GeditMultiNotebook *mnb)
@@ -316,7 +316,7 @@ notebook_page_added (GtkNotebook        *notebook,
        g_signal_emit (G_OBJECT (mnb), signals[TAB_ADDED], 0, notebook, tab);
 }
 
-static void 
+static void
 notebook_switch_page (GtkNotebook        *book,
                      GtkWidget          *pg,
                      gint                page_num,
@@ -650,7 +650,7 @@ gedit_multi_notebook_get_active_tab (GeditMultiNotebook *mnb)
 {
        g_return_val_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb), NULL);
 
-       return (mnb->priv->active_tab == NULL) ? 
+       return (mnb->priv->active_tab == NULL) ?
                                NULL : GEDIT_TAB (mnb->priv->active_tab);
 }
 
@@ -660,7 +660,7 @@ gedit_multi_notebook_set_active_tab (GeditMultiNotebook *mnb,
 {
        GList *l;
        gint page_num;
-       
+
        g_return_if_fail (GEDIT_IS_MULTI_NOTEBOOK (mnb));
        g_return_if_fail (GEDIT_IS_TAB (tab));
 
@@ -703,10 +703,10 @@ gedit_multi_notebook_set_current_page (GeditMultiNotebook *mnb,
        for (l = mnb->priv->notebooks; l != NULL; l = g_list_next (l))
        {
                gint p;
-               
+
                p = gtk_notebook_get_n_pages (GTK_NOTEBOOK (l->data));
                pages += p;
-               
+
                if ((pages - 1) >= page_num)
                        break;
 
diff --git a/gedit/gedit-multi-notebook.h b/gedit/gedit-multi-notebook.h
index be3c253..be0aae9 100644
--- a/gedit/gedit-multi-notebook.h
+++ b/gedit/gedit-multi-notebook.h
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -46,7 +46,7 @@ typedef struct _GeditMultiNotebookPrivate     GeditMultiNotebookPrivate;
 struct _GeditMultiNotebook
 {
        GtkBox parent;
-       
+
        GeditMultiNotebookPrivate *priv;
 };
 
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index cd52016..109174a 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -2,7 +2,7 @@
  * gedit-notebook.c
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 /* This file is a modified version of the epiphany file ephy-notebook.c
@@ -559,7 +559,7 @@ gedit_notebook_init (GeditNotebook *notebook)
 
        notebook->priv->show_tabs_mode = GEDIT_NOTEBOOK_SHOW_TABS_ALWAYS;
        notebook->priv->close_buttons_sensitive = TRUE;
-       
+
        gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
        gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), FALSE);
        gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), TRUE);
@@ -609,7 +609,7 @@ gedit_notebook_add_tab (GeditNotebook *nb,
 
        tab_label = create_tab_label (nb, tab);
 
-       gtk_notebook_insert_page (GTK_NOTEBOOK (nb), 
+       gtk_notebook_insert_page (GTK_NOTEBOOK (nb),
                                  GTK_WIDGET (tab),
                                  tab_label,
                                  position);
diff --git a/gedit/gedit-notebook.h b/gedit/gedit-notebook.h
index 7c81f83..f081abb 100644
--- a/gedit/gedit-notebook.h
+++ b/gedit/gedit-notebook.h
@@ -2,7 +2,7 @@
  * gedit-notebook.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 /* This file is a modified version of the epiphany file ephy-notebook.h
@@ -34,7 +34,7 @@
  *  Copyright (C) 2003, 2004 Christian Persch
  *
  */
- 
+
 #ifndef GEDIT_NOTEBOOK_H
 #define GEDIT_NOTEBOOK_H
 
@@ -68,7 +68,7 @@ typedef struct _GeditNotebookPrivate  GeditNotebookPrivate;
  * Main object structure
  */
 typedef struct _GeditNotebook          GeditNotebook;
- 
+
 struct _GeditNotebook
 {
        GtkNotebook notebook;
diff --git a/gedit/gedit-panel.h b/gedit/gedit-panel.h
index c8a5f41..b29e55a 100644
--- a/gedit/gedit-panel.h
+++ b/gedit/gedit-panel.h
@@ -2,7 +2,7 @@
  * gedit-panel.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -53,7 +53,7 @@ typedef struct _GeditPanelPrivate GeditPanelPrivate;
  */
 typedef struct _GeditPanel GeditPanel;
 
-struct _GeditPanel 
+struct _GeditPanel
 {
        GtkBin parent;
 
@@ -66,7 +66,7 @@ struct _GeditPanel
  */
 typedef struct _GeditPanelClass GeditPanelClass;
 
-struct _GeditPanelClass 
+struct _GeditPanelClass
 {
        GtkBinClass parent_class;
 
diff --git a/gedit/gedit-plugins-engine.c b/gedit/gedit-plugins-engine.c
index f95dc10..0ffd606 100644
--- a/gedit/gedit-plugins-engine.c
+++ b/gedit/gedit-plugins-engine.c
@@ -2,7 +2,7 @@
  * gedit-plugins-engine.c
  * This file is part of gedit
  *
- * Copyright (C) 2002-2005 Paolo Maggi 
+ * Copyright (C) 2002-2005 Paolo Maggi
  * Copyright (C) 2010 Steve Frécinaux
  *
  * This program is free software; you can redistribute it and/or modify
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -69,7 +69,7 @@ gedit_plugins_engine_init (GeditPluginsEngine *engine)
        peas_engine_enable_loader (PEAS_ENGINE (engine), "python3");
 
        engine->priv->plugin_settings = g_settings_new ("org.gnome.gedit.plugins");
-       
+
        /* Require gedit's typelib. */
        typelib_dir = g_build_filename (gedit_dirs_get_gedit_lib_dir (),
                                        "girepository-1.0",
@@ -101,7 +101,7 @@ gedit_plugins_engine_init (GeditPluginsEngine *engine)
                g_error_free (error);
                error = NULL;
        }
-       
+
        peas_engine_add_search_path (PEAS_ENGINE (engine),
                                     gedit_dirs_get_user_plugins_dir (),
                                     gedit_dirs_get_user_plugins_dir ());
diff --git a/gedit/gedit-plugins-engine.h b/gedit/gedit-plugins-engine.h
index cae3a01..8d4a320 100644
--- a/gedit/gedit-plugins-engine.h
+++ b/gedit/gedit-plugins-engine.h
@@ -2,7 +2,7 @@
  * gedit-plugins-engine.h
  * This file is part of gedit
  *
- * Copyright (C) 2002-2005 - Paolo Maggi 
+ * Copyright (C) 2002-2005 - Paolo Maggi
  * Copyright (C) 2010 - Steve Frécinaux
  *
  * This program is free software; you can redistribute it and/or modify
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
diff --git a/gedit/gedit-preferences-dialog.c b/gedit/gedit-preferences-dialog.c
index f9841fa..2875a10 100644
--- a/gedit/gedit-preferences-dialog.c
+++ b/gedit/gedit-preferences-dialog.c
@@ -3,7 +3,7 @@
  * gedit-preferences-dialog.c
  * This file is part of gedit
  *
- * Copyright (C) 2001-2005 Paolo Maggi 
+ * Copyright (C) 2001-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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2001-2003. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2001-2003. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -113,9 +113,9 @@ struct _GeditPreferencesDialogPrivate
        GtkWidget       *auto_save_checkbutton;
        GtkWidget       *auto_save_spinbutton;
        GtkWidget       *autosave_hbox;
-       
+
        GtkWidget       *display_line_numbers_checkbutton;
-       
+
        /* Right margin */
        GtkWidget       *right_margin_checkbutton;
        GtkWidget       *right_margin_position_spinbutton;
@@ -142,18 +142,18 @@ gedit_preferences_dialog_dispose (GObject *object)
        G_OBJECT_CLASS (gedit_preferences_dialog_parent_class)->dispose (object);
 }
 
-static void 
+static void
 gedit_preferences_dialog_class_init (GeditPreferencesDialogClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
-       
+
        object_class->dispose = gedit_preferences_dialog_dispose;
 
        g_type_class_add_private (object_class, sizeof (GeditPreferencesDialogPrivate));
 }
 
 static void
-dialog_response_handler (GtkDialog *dlg, 
+dialog_response_handler (GtkDialog *dlg,
                         gint       res_id)
 {
        gedit_debug (DEBUG_PREFS);
@@ -183,7 +183,7 @@ on_auto_save_changed (GSettings              *settings,
        gboolean value;
 
        gedit_debug (DEBUG_PREFS);
-       
+
        value = g_settings_get_boolean (settings, key);
 
        gtk_widget_set_sensitive (dlg->priv->auto_save_spinbutton, value);
@@ -249,7 +249,7 @@ setup_editor_page (GeditPreferencesDialog *dlg)
 static gboolean split_button_state = TRUE;
 
 static void
-wrap_mode_checkbutton_toggled (GtkToggleButton        *button, 
+wrap_mode_checkbutton_toggled (GtkToggleButton        *button,
                               GeditPreferencesDialog *dlg)
 {
        GtkWrapMode mode;
@@ -258,14 +258,14 @@ wrap_mode_checkbutton_toggled (GtkToggleButton        *button,
        {
                mode = GTK_WRAP_NONE;
 
-               gtk_widget_set_sensitive (dlg->priv->split_checkbutton, 
+               gtk_widget_set_sensitive (dlg->priv->split_checkbutton,
                                          FALSE);
                gtk_toggle_button_set_inconsistent (
                        GTK_TOGGLE_BUTTON (dlg->priv->split_checkbutton), TRUE);
        }
        else
        {
-               gtk_widget_set_sensitive (dlg->priv->split_checkbutton, 
+               gtk_widget_set_sensitive (dlg->priv->split_checkbutton,
                                          TRUE);
 
                gtk_toggle_button_set_inconsistent (
@@ -296,11 +296,11 @@ right_margin_checkbutton_toggled (GtkToggleButton        *button,
                                  GeditPreferencesDialog *dlg)
 {
        gboolean active;
-       
+
        g_return_if_fail (button == GTK_TOGGLE_BUTTON (dlg->priv->right_margin_checkbutton));
 
        active = gtk_toggle_button_get_active (button);
-       
+
        g_settings_set_boolean (dlg->priv->editor, GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN,
                                active);
 
@@ -316,13 +316,13 @@ setup_view_page (GeditPreferencesDialog *dlg)
        guint right_margin_position;
 
        gedit_debug (DEBUG_PREFS);
-       
+
        /* Get values */
        display_right_margin = g_settings_get_boolean (dlg->priv->editor,
                                                       GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN);
        g_settings_get (dlg->priv->editor, GEDIT_SETTINGS_RIGHT_MARGIN_POSITION,
                        "u", &right_margin_position);
-       
+
        /* Set initial state */
        wrap_mode = g_settings_get_enum (dlg->priv->editor,
                                         GEDIT_SETTINGS_WRAP_MODE);
@@ -350,11 +350,11 @@ setup_view_page (GeditPreferencesDialog *dlg)
                                GTK_TOGGLE_BUTTON (dlg->priv->split_checkbutton), TRUE);
 
        }
-       
+
        gtk_toggle_button_set_active (
-               GTK_TOGGLE_BUTTON (dlg->priv->right_margin_checkbutton), 
+               GTK_TOGGLE_BUTTON (dlg->priv->right_margin_checkbutton),
                display_right_margin);
-               
+
        /* Set widgets sensitivity */
        gtk_widget_set_sensitive (dlg->priv->split_checkbutton,
                                  (wrap_mode != GTK_WRAP_NONE));
@@ -382,16 +382,16 @@ setup_view_page (GeditPreferencesDialog *dlg)
                         "value",
                         G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
        g_signal_connect (dlg->priv->wrap_text_checkbutton,
-                         "toggled", 
-                         G_CALLBACK (wrap_mode_checkbutton_toggled), 
+                         "toggled",
+                         G_CALLBACK (wrap_mode_checkbutton_toggled),
                          dlg);
        g_signal_connect (dlg->priv->split_checkbutton,
                          "toggled",
-                         G_CALLBACK (wrap_mode_checkbutton_toggled), 
+                         G_CALLBACK (wrap_mode_checkbutton_toggled),
                          dlg);
        g_signal_connect (dlg->priv->right_margin_checkbutton,
                          "toggled",
-                         G_CALLBACK (right_margin_checkbutton_toggled), 
+                         G_CALLBACK (right_margin_checkbutton_toggled),
                          dlg);
 }
 
@@ -401,7 +401,7 @@ on_use_default_font_changed (GSettings              *settings,
                             GeditPreferencesDialog *dlg)
 {
        gboolean value;
-       
+
        gedit_debug (DEBUG_PREFS);
 
        value = g_settings_get_boolean (settings, key);
@@ -426,7 +426,7 @@ setup_font_colors_page_font_section (GeditPreferencesDialog *dlg)
                                      dlg->priv->default_font_checkbutton,
                                      ATK_RELATION_CONTROLLED_BY);
        gedit_utils_set_atk_relation (dlg->priv->default_font_checkbutton,
-                                     dlg->priv->font_button, 
+                                     dlg->priv->font_button,
                                      ATK_RELATION_CONTROLLER_FOR);
 
        /* Get values */
@@ -541,7 +541,7 @@ ensure_color_scheme_id (GeditPreferencesDialog *dlg,
 
                pref_id = g_settings_get_string (dlg->priv->editor,
                                                 GEDIT_SETTINGS_SCHEME);
-               
+
                scheme = gtk_source_style_scheme_manager_get_scheme (manager,
                                                                     pref_id);
                g_free (pref_id);
@@ -576,9 +576,9 @@ populate_color_scheme_list (GeditPreferencesDialog *dlg, const gchar *def_id)
        gint i;
 
        gtk_list_store_clear (dlg->priv->schemes_treeview_model);
-       
+
        def_id = ensure_color_scheme_id (dlg, def_id);
-       if (def_id == NULL) 
+       if (def_id == NULL)
        {
                g_warning ("Cannot build the list of available color schemes.\n"
                           "Please check your GtkSourceView installation.");
@@ -616,7 +616,7 @@ populate_color_scheme_list (GeditPreferencesDialog *dlg, const gchar *def_id)
                        gtk_tree_selection_select_iter (selection, &iter);
                }
        }
-       
+
        return def_id;
 }
 
@@ -832,23 +832,23 @@ uninstall_style_scheme (const gchar *id)
 }
 
 static void
-add_scheme_chooser_response_cb (GtkDialog              *chooser, 
+add_scheme_chooser_response_cb (GtkDialog              *chooser,
                                gint                    res_id,
                                GeditPreferencesDialog *dlg)
 {
-       gchar* filename; 
+       gchar* filename;
        const gchar *scheme_id;
-       
+
        if (res_id != GTK_RESPONSE_ACCEPT)
        {
                gtk_widget_hide (GTK_WIDGET (chooser));
                return;
        }
-       
+
        filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser));
        if (filename == NULL)
                return;
-       
+
        gtk_widget_hide (GTK_WIDGET (chooser));
 
        scheme_id = install_style_scheme (filename);
@@ -861,7 +861,7 @@ add_scheme_chooser_response_cb (GtkDialog              *chooser,
 
                return;
        }
-       
+
        g_settings_set_string (dlg->priv->editor, GEDIT_SETTINGS_SCHEME,
                               scheme_id);
 
@@ -876,7 +876,7 @@ install_scheme_clicked (GtkButton              *button,
 {
        GtkWidget      *chooser;
        GtkFileFilter  *filter;
-       
+
        if (dlg->priv->install_scheme_file_schooser != NULL)
        {
                gtk_window_present (GTK_WINDOW (dlg->priv->install_scheme_file_schooser));
@@ -890,13 +890,13 @@ install_scheme_clicked (GtkButton              *button,
                                               GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                               NULL);
 
-       gedit_dialog_add_button (GTK_DIALOG (chooser), 
+       gedit_dialog_add_button (GTK_DIALOG (chooser),
                                 _("A_dd Scheme"),
                                 GTK_STOCK_ADD,
                                 GTK_RESPONSE_ACCEPT);
 
        gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser), TRUE);
-               
+
        /* Filters */
        filter = gtk_file_filter_new ();
        gtk_file_filter_set_name (filter, _("Color Scheme Files"));
@@ -904,25 +904,25 @@ install_scheme_clicked (GtkButton              *button,
        gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter);
 
        gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (chooser), filter);
-       
+
        filter = gtk_file_filter_new ();
        gtk_file_filter_set_name (filter, _("All Files"));
        gtk_file_filter_add_pattern (filter, "*");
        gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter);
 
        gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_ACCEPT);
-                       
+
        g_signal_connect (chooser,
                          "response",
                          G_CALLBACK (add_scheme_chooser_response_cb),
                          dlg);
 
        dlg->priv->install_scheme_file_schooser = chooser;
-       
+
        g_object_add_weak_pointer (G_OBJECT (chooser),
                                   (gpointer) &dlg->priv->install_scheme_file_schooser);
-                                  
-       gtk_widget_show (chooser);      
+
+       gtk_widget_show (chooser);
 }
 
 static void
@@ -947,7 +947,7 @@ uninstall_scheme_clicked (GtkButton              *button,
                                    ID_COLUMN, &id,
                                    NAME_COLUMN, &name,
                                    -1);
-       
+
                if (!uninstall_style_scheme (id))
                {
                        gedit_warning (GTK_WINDOW (dlg),
@@ -955,7 +955,7 @@ uninstall_scheme_clicked (GtkButton              *button,
                                       name);
                }
                else
-               {       
+               {
                        const gchar *real_new_id;
                        gchar *new_id = NULL;
                        GtkTreePath *path;
@@ -976,13 +976,13 @@ uninstall_scheme_clicked (GtkButton              *button,
                        gtk_tree_path_next (path);
                        if (!gtk_tree_model_get_iter (model, &new_iter, path))
                        {
-                               /* It seems the removed style scheme was the 
-                                * last of the list. Try to move to the 
+                               /* It seems the removed style scheme was the
+                                * last of the list. Try to move to the
                                 * previous one */
                                gtk_tree_path_free (path);
 
                                path = gtk_tree_model_get_path (model, &iter);
-                               
+
                                gtk_tree_path_prev (path);
                                if (gtk_tree_model_get_iter (model, &new_iter, path))
                                        new_iter_set = TRUE;
@@ -993,17 +993,17 @@ uninstall_scheme_clicked (GtkButton              *button,
                        }
 
                        gtk_tree_path_free (path);
-                                               
+
                        if (new_iter_set)
                                gtk_tree_model_get (model, &new_iter,
                                                    ID_COLUMN, &new_id,
                                                    -1);
-                                                                       
+
                        real_new_id = populate_color_scheme_list (dlg, new_id);
                        g_free (new_id);
-       
+
                        set_buttons_sensisitivity_according_to_scheme (dlg, real_new_id);
-                       
+
                        if (real_new_id != NULL)
                        {
                                g_settings_set_string (dlg->priv->editor,
@@ -1064,9 +1064,9 @@ setup_font_colors_page_style_scheme_section (GeditPreferencesDialog *dlg)
        GtkTreeSelection *selection;
        GtkStyleContext *context;
        const gchar *def_id;
-       
+
        gedit_debug (DEBUG_PREFS);
-                         
+
        /* Create GtkListStore for styles & setup treeview. */
        dlg->priv->schemes_treeview_model = gtk_list_store_new (NUM_COLUMNS,
                                                                G_TYPE_STRING,
@@ -1118,7 +1118,7 @@ setup_font_colors_page_style_scheme_section (GeditPreferencesDialog *dlg)
                          "clicked",
                          G_CALLBACK (uninstall_scheme_clicked),
                          dlg);
-               
+
        /* Set initial widget sensitivity */
        set_buttons_sensisitivity_according_to_scheme (dlg, def_id);
 }
@@ -1164,7 +1164,7 @@ gedit_preferences_dialog_init (GeditPreferencesDialog *dlg)
        gedit_debug (DEBUG_PREFS);
 
        dlg->priv = GEDIT_PREFERENCES_DIALOG_GET_PRIVATE (dlg);
-       
+
        dlg->priv->editor = g_settings_new ("org.gnome.gedit.preferences.editor");
 
        gtk_dialog_add_buttons (GTK_DIALOG (dlg),
@@ -1183,7 +1183,7 @@ gedit_preferences_dialog_init (GeditPreferencesDialog *dlg)
        gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))), 2); /* 2 * 5 + 2 = 12 
*/
        gtk_container_set_border_width (GTK_CONTAINER (gtk_dialog_get_action_area (GTK_DIALOG (dlg))), 5);
        gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dlg))), 6);
-       
+
        g_signal_connect (dlg,
                          "response",
                          G_CALLBACK (dialog_response_handler),
diff --git a/gedit/gedit-preferences-dialog.h b/gedit/gedit-preferences-dialog.h
index f83092e..227cad3 100644
--- a/gedit/gedit-preferences-dialog.h
+++ b/gedit/gedit-preferences-dialog.h
@@ -3,7 +3,7 @@
  * gedit-preferences-dialog.c
  * This file is part of gedit
  *
- * Copyright (C) 2001-2005 Paolo Maggi 
+ * Copyright (C) 2001-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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2003. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2003. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -56,10 +56,10 @@ typedef struct _GeditPreferencesDialogPrivate GeditPreferencesDialogPrivate;
  */
 typedef struct _GeditPreferencesDialog GeditPreferencesDialog;
 
-struct _GeditPreferencesDialog 
+struct _GeditPreferencesDialog
 {
        GtkDialog dialog;
-       
+
        /*< private > */
        GeditPreferencesDialogPrivate *priv;
 };
@@ -69,7 +69,7 @@ struct _GeditPreferencesDialog
  */
 typedef struct _GeditPreferencesDialogClass GeditPreferencesDialogClass;
 
-struct _GeditPreferencesDialogClass 
+struct _GeditPreferencesDialogClass
 {
        GtkDialogClass parent_class;
 };
diff --git a/gedit/gedit-print-job.c b/gedit/gedit-print-job.c
index 8dcbd14..238949c 100644
--- a/gedit/gedit-print-job.c
+++ b/gedit/gedit-print-job.c
@@ -3,7 +3,7 @@
  * This file is part of gedit
  *
  * Copyright (C) 2000-2001 Chema Celorio, Paolo Maggi
- * Copyright (C) 2002-2008 Paolo Maggi  
+ * Copyright (C) 2002-2008 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id: gedit-print.c 6022 2007-12-09 14:38:57Z pborelli $
  */
@@ -64,7 +64,7 @@ struct _GeditPrintJobPrivate
        GtkWidget                *preview;
 
        GeditPrintJobStatus       status;
-       
+
        gchar                    *status_string;
 
        gdouble                   progress;
@@ -95,7 +95,7 @@ enum
        PROP_VIEW
 };
 
-enum 
+enum
 {
        PRINTING,
        SHOW_PREVIEW,
@@ -107,7 +107,7 @@ static guint print_job_signals[LAST_SIGNAL] = { 0 };
 
 G_DEFINE_TYPE (GeditPrintJob, gedit_print_job, G_TYPE_OBJECT)
 
-static void          end_print_cb      (GtkPrintOperation *operation, 
+static void          end_print_cb      (GtkPrintOperation *operation,
                                         GtkPrintContext   *context,
                                         GeditPrintJob     *job);
 
@@ -122,7 +122,7 @@ set_view (GeditPrintJob *job, GeditView *view)
        job->priv->doc = GEDIT_DOCUMENT (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)));
 }
 
-static void 
+static void
 gedit_print_job_get_property (GObject    *object,
                              guint       prop_id,
                              GValue     *value,
@@ -141,7 +141,7 @@ gedit_print_job_get_property (GObject    *object,
        }
 }
 
-static void 
+static void
 gedit_print_job_set_property (GObject      *object,
                              guint         prop_id,
                              const GValue *value,
@@ -187,11 +187,11 @@ gedit_print_job_dispose (GObject *object)
                g_object_unref (job->priv->operation);
                job->priv->operation = NULL;
        }
-       
+
        G_OBJECT_CLASS (gedit_print_job_parent_class)->dispose (object);
 }
 
-static void 
+static void
 gedit_print_job_class_init (GeditPrintJobClass *klass)
 {
        GObjectClass *object_class;
@@ -246,7 +246,7 @@ gedit_print_job_class_init (GeditPrintJobClass *klass)
                              2,
                              G_TYPE_UINT,
                              G_TYPE_POINTER);
-                                                     
+
        g_type_class_add_private (object_class, sizeof (GeditPrintJobPrivate));
 }
 
@@ -264,7 +264,7 @@ wrap_mode_checkbutton_toggled (GtkToggleButton *button,
 {
        if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (job->priv->text_wrapping_checkbutton)))
        {
-               gtk_widget_set_sensitive (job->priv->do_not_split_checkbutton, 
+               gtk_widget_set_sensitive (job->priv->do_not_split_checkbutton,
                                          FALSE);
                gtk_toggle_button_set_inconsistent (
                        GTK_TOGGLE_BUTTON (job->priv->do_not_split_checkbutton),
@@ -286,7 +286,7 @@ restore_button_clicked (GtkButton     *button,
 
 {
        gchar *body, *header, *numbers;
-       
+
        g_settings_reset (job->priv->print_settings,
                          GEDIT_SETTINGS_PRINT_FONT_BODY_PANGO);
        g_settings_reset (job->priv->print_settings,
@@ -310,14 +310,14 @@ restore_button_clicked (GtkButton     *button,
        gtk_font_button_set_font_name (
                        GTK_FONT_BUTTON (job->priv->numbers_fontbutton),
                        numbers);
-       
+
        g_free (body);
        g_free (header);
        g_free (numbers);
 }
 
 static GObject *
-create_custom_widget_cb (GtkPrintOperation *operation, 
+create_custom_widget_cb (GtkPrintOperation *operation,
                         GeditPrintJob     *job)
 {
        GtkBuilder *builder;
@@ -396,7 +396,7 @@ create_custom_widget_cb (GtkPrintOperation *operation,
        /* Text wrapping */
        wrap_mode = g_settings_get_enum (job->priv->print_settings,
                                         GEDIT_SETTINGS_PRINT_WRAP_MODE);
-       
+
        switch (wrap_mode)
        {
                case GTK_WRAP_WORD:
@@ -418,7 +418,7 @@ create_custom_widget_cb (GtkPrintOperation *operation,
                                GTK_TOGGLE_BUTTON (job->priv->do_not_split_checkbutton), TRUE);
        }
 
-       gtk_widget_set_sensitive (job->priv->do_not_split_checkbutton, 
+       gtk_widget_set_sensitive (job->priv->do_not_split_checkbutton,
                                  wrap_mode != GTK_WRAP_NONE);
 
        /* Set initial values */
@@ -523,7 +523,7 @@ create_compositor (GeditPrintJob *job)
        GtkWrapMode wrap_mode;
        guint print_line_numbers;
        gboolean print_header;
-       
+
        /* Create and initialize print compositor */
        print_font_body = g_settings_get_string (job->priv->print_settings,
                                                 GEDIT_SETTINGS_PRINT_FONT_BODY_PANGO);
@@ -537,10 +537,10 @@ create_compositor (GeditPrintJob *job)
                        "u", &print_line_numbers);
        print_header = g_settings_get_boolean (job->priv->print_settings,
                                               GEDIT_SETTINGS_PRINT_HEADER);
-       
+
        wrap_mode = g_settings_get_enum (job->priv->print_settings,
                                         GEDIT_SETTINGS_PRINT_WRAP_MODE);
-       
+
        job->priv->compositor = GTK_SOURCE_PRINT_COMPOSITOR (
                                        g_object_new (GTK_SOURCE_TYPE_PRINT_COMPOSITOR,
                                                     "buffer", GTK_SOURCE_BUFFER (job->priv->doc),
@@ -559,7 +559,7 @@ create_compositor (GeditPrintJob *job)
        g_free (print_font_body);
        g_free (print_font_header);
        g_free (print_font_numbers);
-       
+
        if (print_header)
        {
                gchar *doc_name;
@@ -572,7 +572,7 @@ create_compositor (GeditPrintJob *job)
                left = g_strdup_printf (_("File: %s"), name_to_display);
 
                /* Translators: %N is the current page number, %Q is the total
-                * number of pages (ex. Page 2 of 10) 
+                * number of pages (ex. Page 2 of 10)
                 */
                gtk_source_print_compositor_set_header_format (job->priv->compositor,
                                                               TRUE,
@@ -587,7 +587,7 @@ create_compositor (GeditPrintJob *job)
 }
 
 static void
-begin_print_cb (GtkPrintOperation *operation, 
+begin_print_cb (GtkPrintOperation *operation,
                GtkPrintContext   *context,
                GeditPrintJob     *job)
 {
@@ -596,7 +596,7 @@ begin_print_cb (GtkPrintOperation *operation,
        job->priv->status = GEDIT_PRINT_JOB_STATUS_PAGINATING;
 
        job->priv->progress = 0.0;
-       
+
        g_signal_emit (job, print_job_signals[PRINTING], 0, job->priv->status);
 }
 
@@ -617,7 +617,7 @@ preview_destroyed (GtkWidget                *preview,
        gtk_print_operation_preview_end_preview (gtk_preview);
 }
 
-static gboolean 
+static gboolean
 preview_cb (GtkPrintOperation        *op,
            GtkPrintOperationPreview *gtk_preview,
            GtkPrintContext          *context,
@@ -641,16 +641,16 @@ preview_cb (GtkPrintOperation        *op,
 }
 
 static gboolean
-paginate_cb (GtkPrintOperation *operation, 
+paginate_cb (GtkPrintOperation *operation,
             GtkPrintContext   *context,
             GeditPrintJob     *job)
 {
-       gboolean res;   
-       
+       gboolean res;
+
        job->priv->status = GEDIT_PRINT_JOB_STATUS_PAGINATING;
-       
+
        res = gtk_source_print_compositor_paginate (job->priv->compositor, context);
-               
+
        if (res)
        {
                gint n_pages;
@@ -684,25 +684,25 @@ draw_page_cb (GtkPrintOperation *operation,
        if (!job->priv->is_preview)
        {
                g_free (job->priv->status_string);
-       
+
                n_pages = gtk_source_print_compositor_get_n_pages (job->priv->compositor);
-       
+
                job->priv->status = GEDIT_PRINT_JOB_STATUS_DRAWING;
-       
-               job->priv->status_string = g_strdup_printf ("Rendering page %d of %d...", 
+
+               job->priv->status_string = g_strdup_printf ("Rendering page %d of %d...",
                                                            page_nr + 1,
                                                            n_pages);
-       
+
                job->priv->progress = page_nr / (2.0 * n_pages) + 0.5;
 
                g_signal_emit (job, print_job_signals[PRINTING], 0, job->priv->status);
-       }       
+       }
 
        gtk_source_print_compositor_draw_page (job->priv->compositor, context, page_nr);
 }
 
 static void
-end_print_cb (GtkPrintOperation *operation, 
+end_print_cb (GtkPrintOperation *operation,
              GtkPrintContext   *context,
              GeditPrintJob     *job)
 {
@@ -721,7 +721,7 @@ done_cb (GtkPrintOperation       *operation,
        GError *error = NULL;
        GeditPrintJobResult print_result;
 
-       switch (result) 
+       switch (result)
        {
                case GTK_PRINT_OPERATION_RESULT_CANCEL:
                        print_result = GEDIT_PRINT_JOB_RESULT_CANCEL;
@@ -739,20 +739,20 @@ done_cb (GtkPrintOperation       *operation,
                default:
                        g_return_if_reached ();
        }
-       
+
        /* Avoid job is destroyed in the handler of the "done" message */
        g_object_ref (job);
-       
+
        g_signal_emit (job, print_job_signals[DONE], 0, print_result, error);
-       
+
        g_object_unref (operation);
        job->priv->operation = NULL;
-       
+
        g_object_unref (job);
 }
 
 /* Note that gedit_print_job_print can can only be called once on a given GeditPrintJob */
-GtkPrintOperationResult         
+GtkPrintOperationResult
 gedit_print_job_print (GeditPrintJob            *job,
                       GtkPrintOperationAction   action,
                       GtkPageSetup             *page_setup,
@@ -793,15 +793,15 @@ gedit_print_job_print (GeditPrintJob            *job,
        gtk_print_operation_set_allow_async (priv->operation, TRUE);
 
        g_signal_connect (priv->operation,
-                         "create-custom-widget", 
+                         "create-custom-widget",
                          G_CALLBACK (create_custom_widget_cb),
                          job);
        g_signal_connect (priv->operation,
-                         "custom-widget-apply", 
-                         G_CALLBACK (custom_widget_apply_cb), 
+                         "custom-widget-apply",
+                         G_CALLBACK (custom_widget_apply_cb),
                          job);
        g_signal_connect (priv->operation,
-                         "begin-print", 
+                         "begin-print",
                          G_CALLBACK (begin_print_cb),
                          job);
        g_signal_connect (priv->operation,
@@ -809,23 +809,23 @@ gedit_print_job_print (GeditPrintJob            *job,
                          G_CALLBACK (preview_cb),
                          job);
        g_signal_connect (priv->operation,
-                         "paginate", 
+                         "paginate",
                          G_CALLBACK (paginate_cb),
                          job);
        g_signal_connect (priv->operation,
-                         "draw-page", 
+                         "draw-page",
                          G_CALLBACK (draw_page_cb),
                          job);
        g_signal_connect (priv->operation,
-                         "end-print", 
+                         "end-print",
                          G_CALLBACK (end_print_cb),
                          job);
        g_signal_connect (priv->operation,
-                         "done", 
+                         "done",
                          G_CALLBACK (done_cb),
-                         job);                   
+                         job);
 
-       return gtk_print_operation_run (priv->operation, 
+       return gtk_print_operation_run (priv->operation,
                                        action,
                                        parent,
                                        error);
@@ -835,11 +835,11 @@ static void
 gedit_print_job_init (GeditPrintJob *job)
 {
        job->priv = GEDIT_PRINT_JOB_GET_PRIVATE (job);
-       
+
        job->priv->print_settings = g_settings_new ("org.gnome.gedit.preferences.print");
-       
+
        job->priv->status = GEDIT_PRINT_JOB_STATUS_INIT;
-       
+
        job->priv->status_string = g_strdup (_("Preparing..."));
 }
 
@@ -847,9 +847,9 @@ GeditPrintJob *
 gedit_print_job_new (GeditView *view)
 {
        GeditPrintJob *job;
-       
+
        g_return_val_if_fail (GEDIT_IS_VIEW (view), NULL);
-       
+
        job = GEDIT_PRINT_JOB (g_object_new (GEDIT_TYPE_PRINT_JOB,
                                             "view", view,
                                              NULL));
@@ -870,7 +870,7 @@ gedit_print_job_get_status_string (GeditPrintJob *job)
 {
        g_return_val_if_fail (GEDIT_IS_PRINT_JOB (job), NULL);
        g_return_val_if_fail (job->priv->status_string != NULL, NULL);
-       
+
        return job->priv->status_string;
 }
 
diff --git a/gedit/gedit-print-job.h b/gedit/gedit-print-job.h
index 6738745..1478f83 100644
--- a/gedit/gedit-print-job.h
+++ b/gedit/gedit-print-job.h
@@ -3,7 +3,7 @@
  * This file is part of gedit
  *
  * Copyright (C) 2000-2001 Chema Celorio, Paolo Maggi
- * Copyright (C) 2002-2008 Paolo Maggi  
+ * Copyright (C) 2002-2008 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -60,7 +60,7 @@ typedef enum
 {
        GEDIT_PRINT_JOB_RESULT_OK,
        GEDIT_PRINT_JOB_RESULT_CANCEL,
-       GEDIT_PRINT_JOB_RESULT_ERROR    
+       GEDIT_PRINT_JOB_RESULT_ERROR
 } GeditPrintJobResult;
 
 /* Private structure type */
@@ -72,10 +72,10 @@ typedef struct _GeditPrintJobPrivate GeditPrintJobPrivate;
 typedef struct _GeditPrintJob GeditPrintJob;
 
 
-struct _GeditPrintJob 
+struct _GeditPrintJob
 {
        GObject parent;
-       
+
        /* <private> */
        GeditPrintJobPrivate *priv;
 };
@@ -85,7 +85,7 @@ struct _GeditPrintJob
  */
 typedef struct _GeditPrintJobClass GeditPrintJobClass;
 
-struct _GeditPrintJobClass 
+struct _GeditPrintJobClass
 {
        GObjectClass parent_class;
 
diff --git a/gedit/gedit-print-preview.c b/gedit/gedit-print-preview.c
index 1d89cf4..648fee5 100644
--- a/gedit/gedit-print-preview.c
+++ b/gedit/gedit-print-preview.c
@@ -84,14 +84,14 @@ struct _GeditPrintPreviewPrivate
 
 G_DEFINE_TYPE (GeditPrintPreview, gedit_print_preview, GTK_TYPE_BOX)
 
-static void 
+static void
 gedit_print_preview_get_property (GObject    *object,
                                  guint       prop_id,
                                  GValue     *value,
                                  GParamSpec *pspec)
 {
        /* GeditPrintPreview *preview = GEDIT_PRINT_PREVIEW (object); */
-       
+
        switch (prop_id)
        {
                default:
@@ -100,14 +100,14 @@ gedit_print_preview_get_property (GObject    *object,
        }
 }
 
-static void 
+static void
 gedit_print_preview_set_property (GObject      *object,
                                  guint         prop_id,
                                  const GValue *value,
                                  GParamSpec   *pspec)
 {
        /* GeditPrintPreview *preview = GEDIT_PRINT_PREVIEW (object); */
-       
+
        switch (prop_id)
        {
                default:
@@ -134,7 +134,7 @@ gedit_print_preview_grab_focus (GtkWidget *widget)
        gtk_widget_grab_focus (GTK_WIDGET (preview->priv->layout));
 }
 
-static void                                             
+static void
 gedit_print_preview_class_init (GeditPrintPreviewClass *klass)
 {
        GObjectClass *object_class;
@@ -149,7 +149,7 @@ gedit_print_preview_class_init (GeditPrintPreviewClass *klass)
 
        widget_class->grab_focus = gedit_print_preview_grab_focus;
 
-       g_type_class_add_private (object_class, sizeof (GeditPrintPreviewPrivate));     
+       g_type_class_add_private (object_class, sizeof (GeditPrintPreviewPrivate));
 }
 
 static void
@@ -208,7 +208,7 @@ get_paper_height (GeditPrintPreview *preview)
 }
 
 #define PAGE_PAD 12
-#define PAGE_SHADOW_OFFSET 5 
+#define PAGE_SHADOW_OFFSET 5
 
 /* The tile size is the size of the area where a page
  * will be drawn including the padding and idependent
@@ -218,7 +218,7 @@ get_paper_height (GeditPrintPreview *preview)
 static void
 update_tile_size (GeditPrintPreview *preview)
 {
-       GeditPrintPreviewPrivate *priv; 
+       GeditPrintPreviewPrivate *priv;
        gint w, h;
 
        priv = preview->priv;
@@ -237,7 +237,7 @@ static void
 set_zoom_factor (GeditPrintPreview *preview,
                 double             zoom)
 {
-       GeditPrintPreviewPrivate *priv; 
+       GeditPrintPreviewPrivate *priv;
 
        priv = preview->priv;
 
@@ -411,7 +411,7 @@ page_entry_insert_text (GtkEditable *editable,
        }
 }
 
-static gboolean 
+static gboolean
 page_entry_focus_out (GtkWidget         *widget,
                      GdkEventFocus     *event,
                      GeditPrintPreview *preview)
@@ -590,15 +590,15 @@ create_bar (GeditPrintPreview *preview)
        gtk_widget_set_tooltip_text (priv->page_entry, _("Current page (Alt+P)"));
 
        g_signal_connect (priv->page_entry,
-                         "activate", 
+                         "activate",
                          G_CALLBACK (page_entry_activated),
                          preview);
        g_signal_connect (priv->page_entry,
-                         "insert-text", 
+                         "insert-text",
                          G_CALLBACK (page_entry_insert_text),
                          NULL);
        g_signal_connect (priv->page_entry,
-                         "focus-out-event", 
+                         "focus-out-event",
                          G_CALLBACK (page_entry_focus_out),
                          preview);
 
@@ -631,7 +631,7 @@ create_bar (GeditPrintPreview *preview)
        i = gtk_separator_tool_item_new ();
        gtk_widget_show (GTK_WIDGET (i));
        gtk_toolbar_insert (GTK_TOOLBAR (toolbar), i, -1);
-       
+
        priv->multi = gtk_tool_button_new_from_stock (GTK_STOCK_DND_MULTIPLE);
        gtk_tool_button_set_label (GTK_TOOL_BUTTON (priv->multi),
                                   "_Show Multiple Pages");
@@ -742,7 +742,7 @@ get_page_at_coords (GeditPrintPreview *preview,
 
        /* FIXME: we could try to be picky and check
         * if we actually are inside the page */
-       return pg; 
+       return pg;
 }
 
 static gboolean
@@ -983,8 +983,8 @@ static void
 gedit_print_preview_init (GeditPrintPreview *preview)
 {
        GeditPrintPreviewPrivate *priv;
-       
-       priv = G_TYPE_INSTANCE_GET_PRIVATE (preview, 
+
+       priv = G_TYPE_INSTANCE_GET_PRIVATE (preview,
                                            GEDIT_TYPE_PRINT_PREVIEW,
                                            GeditPrintPreviewPrivate);
 
@@ -1137,7 +1137,7 @@ get_screen_dpi (GeditPrintPreview *preview)
        GdkScreen *screen;
        double dpi;
 
-       screen = gtk_widget_get_screen (GTK_WIDGET (preview));  
+       screen = gtk_widget_get_screen (GTK_WIDGET (preview));
 
        dpi = gdk_screen_get_resolution (screen);
        if (dpi < 30. || 600. < dpi)
@@ -1198,7 +1198,7 @@ update_paper_size (GeditPrintPreview *preview,
 }
 
 static void
-preview_got_page_size (GtkPrintOperationPreview *gtk_preview, 
+preview_got_page_size (GtkPrintOperationPreview *gtk_preview,
                       GtkPrintContext          *context,
                       GtkPageSetup             *page_setup,
                       GeditPrintPreview        *preview)
@@ -1283,7 +1283,7 @@ gedit_print_preview_new (GtkPrintOperation        *op,
        update_paper_size (preview, page_setup);
 
        /* FIXME: we need a cr to paginate... but we can't get the drawing
-        * area surface because it's not there yet... for now I create 
+        * area surface because it's not there yet... for now I create
         * a dummy pdf surface */
 
        surface = create_preview_surface (preview, &dpi_x, &dpi_y);
diff --git a/gedit/gedit-progress-info-bar.c b/gedit/gedit-progress-info-bar.c
index d17faf5..9291d98 100644
--- a/gedit/gedit-progress-info-bar.c
+++ b/gedit/gedit-progress-info-bar.c
@@ -2,7 +2,7 @@
  * gedit-progress-info-bar.c
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,20 +16,20 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
- 
+
  /* TODO: add properties */
- 
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
@@ -91,7 +91,7 @@ gedit_progress_info_bar_set_property (GObject      *object,
        }
 }
 
-static void 
+static void
 gedit_progress_info_bar_class_init (GeditProgressInfoBarClass *klass)
 {
        GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
@@ -117,9 +117,9 @@ gedit_progress_info_bar_init (GeditProgressInfoBar *bar)
        GtkWidget *vbox;
        GtkWidget *hbox;
        GtkWidget *content;
-       
+
        bar->priv = GEDIT_PROGRESS_INFO_BAR_GET_PRIVATE (bar);
-       
+
        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
        gtk_widget_show (vbox);
 
@@ -127,17 +127,17 @@ gedit_progress_info_bar_init (GeditProgressInfoBar *bar)
        gtk_widget_show (hbox);
        gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0);
 
-       bar->priv->image = gtk_image_new_from_icon_name (GTK_STOCK_MISSING_IMAGE, 
+       bar->priv->image = gtk_image_new_from_icon_name (GTK_STOCK_MISSING_IMAGE,
                                                         GTK_ICON_SIZE_SMALL_TOOLBAR);
        gtk_widget_show (bar->priv->image);
        gtk_box_pack_start (GTK_BOX (hbox), bar->priv->image, FALSE, FALSE, 4);
-       
+
        bar->priv->label = gtk_label_new ("");
        gtk_widget_show (bar->priv->label);
        gtk_box_pack_start (GTK_BOX (hbox), bar->priv->label, FALSE, TRUE, 0);
        gtk_label_set_use_markup (GTK_LABEL (bar->priv->label), TRUE);
        gtk_widget_set_halign (bar->priv->label, GTK_ALIGN_START);
-       gtk_label_set_ellipsize (GTK_LABEL (bar->priv->label), 
+       gtk_label_set_ellipsize (GTK_LABEL (bar->priv->label),
                                 PANGO_ELLIPSIZE_END);
 
        bar->priv->progress = gtk_progress_bar_new ();
@@ -145,7 +145,7 @@ gedit_progress_info_bar_init (GeditProgressInfoBar *bar)
        gtk_widget_show (bar->priv->progress);
        gtk_box_pack_start (GTK_BOX (vbox), bar->priv->progress, FALSE, TRUE, 0);
        gtk_widget_set_size_request (bar->priv->progress, -1, 15);
-       
+
        content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar));
        gtk_container_add (GTK_CONTAINER (content), vbox);
 }
@@ -167,7 +167,7 @@ gedit_progress_info_bar_new (const gchar *stock_id,
        gedit_progress_info_bar_set_stock_image (bar, stock_id);
        gedit_progress_info_bar_set_markup (bar, markup);
 
-       return GTK_WIDGET (bar);        
+       return GTK_WIDGET (bar);
 }
 
 void
@@ -176,7 +176,7 @@ gedit_progress_info_bar_set_stock_image (GeditProgressInfoBar *bar,
 {
        g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (bar));
        g_return_if_fail (stock_id != NULL);
-       
+
        gtk_image_set_from_stock (GTK_IMAGE (bar->priv->image),
                                  stock_id,
                                  GTK_ICON_SIZE_SMALL_TOOLBAR);
diff --git a/gedit/gedit-progress-info-bar.h b/gedit/gedit-progress-info-bar.h
index 9075908..cf10af3 100644
--- a/gedit/gedit-progress-info-bar.h
+++ b/gedit/gedit-progress-info-bar.h
@@ -2,7 +2,7 @@
  * gedit-progress-info-bar.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -53,7 +53,7 @@ typedef struct _GeditProgressInfoBarPrivate GeditProgressInfoBarPrivate;
  */
 typedef struct _GeditProgressInfoBar GeditProgressInfoBar;
 
-struct _GeditProgressInfoBar 
+struct _GeditProgressInfoBar
 {
        GtkInfoBar parent;
 
@@ -66,7 +66,7 @@ struct _GeditProgressInfoBar
  */
 typedef struct _GeditProgressInfoBarClass GeditProgressInfoBarClass;
 
-struct _GeditProgressInfoBarClass 
+struct _GeditProgressInfoBarClass
 {
        GtkInfoBarClass parent_class;
 };
@@ -93,7 +93,7 @@ void           gedit_progress_info_bar_set_fraction           (GeditProgressInfoBar *bar,
                                                                 gdouble               fraction);
 
 void            gedit_progress_info_bar_pulse                  (GeditProgressInfoBar *bar);
-                                                                
+
 
 G_END_DECLS
 
diff --git a/gedit/gedit-replace-dialog.c b/gedit/gedit-replace-dialog.c
index cb1efed..9b2d1a3 100644
--- a/gedit/gedit-replace-dialog.c
+++ b/gedit/gedit-replace-dialog.c
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -127,7 +127,7 @@ gedit_replace_dialog_response (GtkDialog *dialog,
        }
 }
 
-static void 
+static void
 gedit_replace_dialog_class_init (GeditReplaceDialogClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -187,18 +187,18 @@ search_text_entry_changed (GtkEditable        *editable,
 
        if (*search_string != '\0')
        {
-               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), 
+               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                        GEDIT_REPLACE_DIALOG_FIND_RESPONSE, TRUE);
-               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), 
+               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                        GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE, TRUE);
        }
        else
        {
-               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), 
+               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                        GEDIT_REPLACE_DIALOG_FIND_RESPONSE, FALSE);
-               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), 
+               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                        GEDIT_REPLACE_DIALOG_REPLACE_RESPONSE, FALSE);
-               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), 
+               gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                        GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE, FALSE);
        }
 }
@@ -222,7 +222,7 @@ gedit_replace_dialog_init (GeditReplaceDialog *dlg)
        gtk_dialog_add_buttons (GTK_DIALOG (dlg),
                                GTK_STOCK_CLOSE, GTK_RESPONSE_CANCEL,
                                NULL);
-                               
+
        /* HIG defaults */
        gtk_container_set_border_width (GTK_CONTAINER (dlg), 5);
        gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))),
@@ -343,11 +343,11 @@ gedit_replace_dialog_new (GtkWindow *parent)
        {
                gtk_window_set_transient_for (GTK_WINDOW (dlg),
                                              parent);
-       
+
                gtk_window_set_destroy_with_parent (GTK_WINDOW (dlg),
                                                    TRUE);
        }
-       
+
        return GTK_WIDGET (dlg);
 }
 
@@ -364,7 +364,7 @@ gedit_replace_dialog_set_search_text (GeditReplaceDialog *dialog,
        gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                                           GEDIT_REPLACE_DIALOG_FIND_RESPONSE,
                                           (text != '\0'));
-                                          
+
        gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                                           GEDIT_REPLACE_DIALOG_REPLACE_ALL_RESPONSE,
                                           (text != '\0'));
diff --git a/gedit/gedit-replace-dialog.h b/gedit/gedit-replace-dialog.h
index e94bf27..9eb0f40 100644
--- a/gedit/gedit-replace-dialog.h
+++ b/gedit/gedit-replace-dialog.h
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -54,7 +54,7 @@ typedef struct _GeditReplaceDialogPrivate GeditReplaceDialogPrivate;
  */
 typedef struct _GeditReplaceDialog GeditReplaceDialog;
 
-struct _GeditReplaceDialog 
+struct _GeditReplaceDialog
 {
        GtkDialog dialog;
 
@@ -112,7 +112,7 @@ gboolean     gedit_replace_dialog_get_backwards     (GeditReplaceDialog *dialog);
 void            gedit_replace_dialog_set_wrap_around   (GeditReplaceDialog *dialog,
                                                         gboolean            wrap_around);
 gboolean        gedit_replace_dialog_get_wrap_around   (GeditReplaceDialog *dialog);
-   
+
 G_END_DECLS
 
 #endif  /* __GEDIT_REPLACE_DIALOG_H__  */
diff --git a/gedit/gedit-settings.c b/gedit/gedit-settings.c
index 058eaee..c6fcd47 100644
--- a/gedit/gedit-settings.c
+++ b/gedit/gedit-settings.c
@@ -17,7 +17,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -50,7 +50,7 @@ struct _GeditSettingsPrivate
        GSettings *interface;
        GSettings *editor;
        GSettings *ui;
-       
+
        gchar *old_scheme;
 };
 
@@ -86,31 +86,31 @@ on_lockdown_changed (GSettings   *settings,
 {
        gboolean locked;
        GeditApp *app;
-       
+
        locked = g_settings_get_boolean (settings, key);
        app = GEDIT_APP (g_application_get_default ());
 
        if (strcmp (key, GEDIT_SETTINGS_LOCKDOWN_COMMAND_LINE) == 0)
        {
-               _gedit_app_set_lockdown_bit (app, 
+               _gedit_app_set_lockdown_bit (app,
                                             GEDIT_LOCKDOWN_COMMAND_LINE,
                                             locked);
        }
        else if (strcmp (key, GEDIT_SETTINGS_LOCKDOWN_PRINTING) == 0)
        {
-               _gedit_app_set_lockdown_bit (app, 
+               _gedit_app_set_lockdown_bit (app,
                                             GEDIT_LOCKDOWN_PRINTING,
                                             locked);
        }
        else if (strcmp (key, GEDIT_SETTINGS_LOCKDOWN_PRINT_SETUP) == 0)
        {
-               _gedit_app_set_lockdown_bit (app, 
+               _gedit_app_set_lockdown_bit (app,
                                             GEDIT_LOCKDOWN_PRINT_SETUP,
                                             locked);
        }
        else if (strcmp (key, GEDIT_SETTINGS_LOCKDOWN_SAVE_TO_DISK) == 0)
        {
-               _gedit_app_set_lockdown_bit (app, 
+               _gedit_app_set_lockdown_bit (app,
                                             GEDIT_LOCKDOWN_SAVE_TO_DISK,
                                             locked);
        }
@@ -122,7 +122,7 @@ set_font (GeditSettings *gs,
 {
        GList *views, *l;
        guint ts;
-       
+
        g_settings_get (gs->priv->editor, GEDIT_SETTINGS_TABS_SIZE, "u", &ts);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -134,7 +134,7 @@ set_font (GeditSettings *gs,
 
                gtk_source_view_set_tab_width (GTK_SOURCE_VIEW (l->data), ts);
        }
-       
+
        g_list_free (views);
 }
 
@@ -143,19 +143,19 @@ on_system_font_changed (GSettings     *settings,
                        const gchar   *key,
                        GeditSettings *gs)
 {
-       
+
        gboolean use_default_font;
        gchar *font;
-       
+
        use_default_font = g_settings_get_boolean (gs->priv->editor,
                                                   GEDIT_SETTINGS_USE_DEFAULT_FONT);
        if (!use_default_font)
                return;
-       
+
        font = g_settings_get_string (settings, key);
-       
+
        set_font (gs, font);
-       
+
        g_free (font);
 }
 
@@ -168,7 +168,7 @@ on_use_default_font_changed (GSettings     *settings,
        gchar *font;
 
        def = g_settings_get_boolean (settings, key);
-       
+
        if (def)
        {
                font = g_settings_get_string (gs->priv->interface,
@@ -179,9 +179,9 @@ on_use_default_font_changed (GSettings     *settings,
                font = g_settings_get_string (gs->priv->editor,
                                              GEDIT_SETTINGS_EDITOR_FONT);
        }
-       
+
        set_font (gs, font);
-       
+
        g_free (font);
 }
 
@@ -192,16 +192,16 @@ on_editor_font_changed (GSettings     *settings,
 {
        gboolean use_default_font;
        gchar *font;
-       
+
        use_default_font = g_settings_get_boolean (gs->priv->editor,
                                                   GEDIT_SETTINGS_USE_DEFAULT_FONT);
        if (use_default_font)
                return;
-       
+
        font = g_settings_get_string (settings, key);
-       
+
        set_font (gs, font);
-       
+
        g_free (font);
 }
 
@@ -235,7 +235,7 @@ on_scheme_changed (GSettings     *settings,
                g_warning ("Default style scheme '%s' not found, falling back to 'classic'", scheme);
 
                style = gtk_source_style_scheme_manager_get_scheme (manager, "classic");
-               if (style == NULL) 
+               if (style == NULL)
                {
                        g_warning ("Style scheme 'classic' cannot be found, check your GtkSourceView 
installation.");
                        return;
@@ -262,7 +262,7 @@ on_auto_save_changed (GSettings     *settings,
 {
        GList *docs, *l;
        gboolean auto_save;
-       
+
        auto_save = g_settings_get_boolean (settings, key);
 
        docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ()));
@@ -270,10 +270,10 @@ on_auto_save_changed (GSettings     *settings,
        for (l = docs; l != NULL; l = g_list_next (l))
        {
                GeditTab *tab = gedit_tab_get_from_document (GEDIT_DOCUMENT (l->data));
-               
+
                gedit_tab_set_auto_save_enabled (tab, auto_save);
        }
-       
+
        g_list_free (docs);
 }
 
@@ -284,7 +284,7 @@ on_auto_save_interval_changed (GSettings     *settings,
 {
        GList *docs, *l;
        gint auto_save_interval;
-       
+
        g_settings_get (settings, key, "u", &auto_save_interval);
 
        docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ()));
@@ -292,10 +292,10 @@ on_auto_save_interval_changed (GSettings     *settings,
        for (l = docs; l != NULL; l = g_list_next (l))
        {
                GeditTab *tab = gedit_tab_get_from_document (GEDIT_DOCUMENT (l->data));
-               
+
                gedit_tab_set_auto_save_interval (tab, auto_save_interval);
        }
-       
+
        g_list_free (docs);
 }
 
@@ -306,9 +306,9 @@ on_undo_actions_limit_changed (GSettings     *settings,
 {
        GList *docs, *l;
        gint ul;
-       
+
        ul = g_settings_get_int (settings, key);
-       
+
        ul = CLAMP (ul, -1, 250);
 
        docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ()));
@@ -318,7 +318,7 @@ on_undo_actions_limit_changed (GSettings     *settings,
                gtk_source_buffer_set_max_undo_levels (GTK_SOURCE_BUFFER (l->data),
                                                       ul);
        }
-       
+
        g_list_free (docs);
 }
 
@@ -339,7 +339,7 @@ on_wrap_mode_changed (GSettings     *settings,
                gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (l->data),
                                             wrap_mode);
        }
-       
+
        g_list_free (views);
 }
 
@@ -350,9 +350,9 @@ on_tabs_size_changed (GSettings     *settings,
 {
        GList *views, *l;
        guint ts;
-       
+
        g_settings_get (settings, key, "u", &ts);
-       
+
        ts = CLAMP (ts, 1, 24);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -362,7 +362,7 @@ on_tabs_size_changed (GSettings     *settings,
                gtk_source_view_set_tab_width (GTK_SOURCE_VIEW (l->data),
                                               ts);
        }
-       
+
        g_list_free (views);
 }
 
@@ -373,7 +373,7 @@ on_insert_spaces_changed (GSettings     *settings,
 {
        GList *views, *l;
        gboolean spaces;
-       
+
        spaces = g_settings_get_boolean (settings, key);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -384,7 +384,7 @@ on_insert_spaces_changed (GSettings     *settings,
                                        GTK_SOURCE_VIEW (l->data),
                                        spaces);
        }
-       
+
        g_list_free (views);
 }
 
@@ -395,7 +395,7 @@ on_auto_indent_changed (GSettings     *settings,
 {
        GList *views, *l;
        gboolean enable;
-       
+
        enable = g_settings_get_boolean (settings, key);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -405,7 +405,7 @@ on_auto_indent_changed (GSettings     *settings,
                gtk_source_view_set_auto_indent (GTK_SOURCE_VIEW (l->data),
                                                 enable);
        }
-       
+
        g_list_free (views);
 }
 
@@ -416,7 +416,7 @@ on_display_line_numbers_changed (GSettings     *settings,
 {
        GList *views, *l;
        gboolean line_numbers;
-       
+
        line_numbers = g_settings_get_boolean (settings, key);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -426,7 +426,7 @@ on_display_line_numbers_changed (GSettings     *settings,
                gtk_source_view_set_show_line_numbers (GTK_SOURCE_VIEW (l->data),
                                                       line_numbers);
        }
-       
+
        g_list_free (views);
 }
 
@@ -437,7 +437,7 @@ on_hl_current_line_changed (GSettings     *settings,
 {
        GList *views, *l;
        gboolean hl;
-       
+
        hl = g_settings_get_boolean (settings, key);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -447,7 +447,7 @@ on_hl_current_line_changed (GSettings     *settings,
                gtk_source_view_set_highlight_current_line (GTK_SOURCE_VIEW (l->data),
                                                            hl);
        }
-       
+
        g_list_free (views);
 }
 
@@ -458,7 +458,7 @@ on_bracket_matching_changed (GSettings     *settings,
 {
        GList *docs, *l;
        gboolean enable;
-       
+
        enable = g_settings_get_boolean (settings, key);
 
        docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ()));
@@ -468,7 +468,7 @@ on_bracket_matching_changed (GSettings     *settings,
                gtk_source_buffer_set_highlight_matching_brackets (GTK_SOURCE_BUFFER (l->data),
                                                                   enable);
        }
-       
+
        g_list_free (docs);
 }
 
@@ -479,7 +479,7 @@ on_display_right_margin_changed (GSettings     *settings,
 {
        GList *views, *l;
        gboolean display;
-       
+
        display = g_settings_get_boolean (settings, key);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -489,7 +489,7 @@ on_display_right_margin_changed (GSettings     *settings,
                gtk_source_view_set_show_right_margin (GTK_SOURCE_VIEW (l->data),
                                                       display);
        }
-       
+
        g_list_free (views);
 }
 
@@ -500,9 +500,9 @@ on_right_margin_position_changed (GSettings     *settings,
 {
        GList *views, *l;
        gint pos;
-       
+
        g_settings_get (settings, key, "u", &pos);
-       
+
        pos = CLAMP (pos, 1, 160);
 
        views = gedit_app_get_views (GEDIT_APP (g_application_get_default ()));
@@ -512,7 +512,7 @@ on_right_margin_position_changed (GSettings     *settings,
                gtk_source_view_set_right_margin_position (GTK_SOURCE_VIEW (l->data),
                                                           pos);
        }
-       
+
        g_list_free (views);
 }
 
@@ -533,7 +533,7 @@ on_smart_home_end_changed (GSettings     *settings,
                gtk_source_view_set_smart_home_end (GTK_SOURCE_VIEW (l->data),
                                                    smart_he);
        }
-       
+
        g_list_free (views);
 }
 
@@ -545,7 +545,7 @@ on_syntax_highlighting_changed (GSettings     *settings,
        const GList *windows;
        GList *docs, *l;
        gboolean enable;
-       
+
        enable = g_settings_get_boolean (settings, key);
 
        docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ()));
@@ -555,7 +555,7 @@ on_syntax_highlighting_changed (GSettings     *settings,
                gtk_source_buffer_set_highlight_syntax (GTK_SOURCE_BUFFER (l->data),
                                                        enable);
        }
-       
+
        g_list_free (docs);
 
        /* update the sensitivity of the Higlight Mode menu item */
@@ -583,7 +583,7 @@ on_search_highlighting_changed (GSettings     *settings,
 {
        GList *docs, *l;
        gboolean enable;
-       
+
        enable = g_settings_get_boolean (settings, key);
 
        docs = gedit_app_get_documents (GEDIT_APP (g_application_get_default ()));
@@ -593,7 +593,7 @@ on_search_highlighting_changed (GSettings     *settings,
                gedit_document_set_enable_search_highlighting  (GEDIT_DOCUMENT (l->data),
                                                                enable);
        }
-       
+
        g_list_free (docs);
 }
 
@@ -601,7 +601,7 @@ static void
 gedit_settings_init (GeditSettings *gs)
 {
        gs->priv = GEDIT_SETTINGS_GET_PRIVATE (gs);
-       
+
        gs->priv->old_scheme = NULL;
        gs->priv->editor = g_settings_new ("org.gnome.gedit.preferences.editor");
        gs->priv->ui = g_settings_new ("org.gnome.gedit.preferences.ui");
@@ -615,7 +615,7 @@ gedit_settings_init (GeditSettings *gs)
                          NULL);
 
        gs->priv->interface = g_settings_new ("org.gnome.desktop.interface");
-       
+
        g_signal_connect (gs->priv->interface,
                          "changed::monospace-font-name",
                          G_CALLBACK (on_system_font_changed),
@@ -718,7 +718,7 @@ gedit_settings_get_lockdown (GeditSettings *gs)
 {
        guint lockdown = 0;
        gboolean command_line, printing, print_setup, save_to_disk;
-       
+
        command_line = g_settings_get_boolean (gs->priv->lockdown,
                                               GEDIT_SETTINGS_LOCKDOWN_COMMAND_LINE);
        printing = g_settings_get_boolean (gs->priv->lockdown,
@@ -749,10 +749,10 @@ gedit_settings_get_system_font (GeditSettings *gs)
        gchar *system_font;
 
        g_return_val_if_fail (GEDIT_IS_SETTINGS (gs), NULL);
-       
+
        system_font = g_settings_get_string (gs->priv->interface,
                                             "monospace-font-name");
-       
+
        return system_font;
 }
 
diff --git a/gedit/gedit-settings.h b/gedit/gedit-settings.h
index ac17055..b6067cc 100644
--- a/gedit/gedit-settings.h
+++ b/gedit/gedit-settings.h
@@ -17,7 +17,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
diff --git a/gedit/gedit-status-combo-box.c b/gedit/gedit-status-combo-box.c
index 2ad7df2..6e9cc7e 100644
--- a/gedit/gedit-status-combo-box.c
+++ b/gedit/gedit-status-combo-box.c
@@ -38,7 +38,7 @@ struct _GeditStatusComboBoxPrivate
        GtkWidget *label;
        GtkWidget *item;
        GtkWidget *arrow;
-       
+
        GtkWidget *menu;
        GtkWidget *current_item;
 };
@@ -56,10 +56,10 @@ enum
 };
 
 /* Properties */
-enum 
+enum
 {
        PROP_0,
-       
+
        PROP_LABEL
 };
 
@@ -133,7 +133,7 @@ gedit_status_combo_box_changed (GeditStatusComboBox *combo,
                                GtkMenuItem         *item)
 {
        const gchar *text;
-       
+
        text = g_object_get_data (G_OBJECT (item), COMBO_BOX_TEXT_DATA);
 
        if (text != NULL)
@@ -173,7 +173,7 @@ gedit_status_combo_box_class_init (GeditStatusComboBoxClass *klass)
                                           changed), NULL, NULL,
                          g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
                          GTK_TYPE_MENU_ITEM);
-                         
+
        g_object_class_install_property (object_class, PROP_LABEL,
                                         g_param_spec_string ("label",
                                                              "LABEL",
@@ -205,22 +205,22 @@ menu_position_func (GtkMenu               *menu,
 {
        GtkRequisition request;
        GtkAllocation allocation;
-       
+
        *push_in = FALSE;
 
        gtk_widget_get_preferred_size (gtk_widget_get_toplevel (GTK_WIDGET (menu)),
                                       &request, NULL);
-       
+
        /* get the origin... */
        gdk_window_get_origin (gtk_widget_get_window (GTK_WIDGET (combo)), x, y);
-       
+
        /* make the menu as wide as the widget */
        gtk_widget_get_allocation (GTK_WIDGET (combo), &allocation);
        if (request.width < allocation.width)
        {
                gtk_widget_set_size_request (GTK_WIDGET (menu), allocation.width, -1);
        }
-       
+
        /* position it above the widget */
        *y -= request.height;
 }
@@ -240,13 +240,13 @@ show_menu (GeditStatusComboBox *combo,
        /* do something relative to our own height here, maybe we can do better */
        gtk_widget_get_allocation (GTK_WIDGET (combo), &allocation);
        max_height = allocation.height * 20;
-       
+
        if (request.height > max_height)
        {
                gtk_widget_set_size_request (combo->priv->menu, -1, max_height);
                gtk_widget_set_size_request (gtk_widget_get_toplevel (combo->priv->menu), -1, max_height);
        }
-       
+
        gtk_menu_popup (GTK_MENU (combo->priv->menu),
                        NULL,
                        NULL,
@@ -259,7 +259,7 @@ show_menu (GeditStatusComboBox *combo,
 
        if (combo->priv->current_item)
        {
-               gtk_menu_shell_select_item (GTK_MENU_SHELL (combo->priv->menu), 
+               gtk_menu_shell_select_item (GTK_MENU_SHELL (combo->priv->menu),
                                            combo->priv->current_item);
        }
 }
@@ -333,7 +333,7 @@ gedit_status_combo_box_init (GeditStatusComboBox *self)
 
        self->priv->frame = gtk_frame_new (NULL);
        gtk_widget_show (self->priv->frame);
-       
+
        self->priv->button = gtk_toggle_button_new ();
        gtk_button_set_relief (GTK_BUTTON (self->priv->button), GTK_RELIEF_NONE);
        gtk_widget_show (self->priv->button);
@@ -346,26 +346,26 @@ gedit_status_combo_box_init (GeditStatusComboBox *self)
        gtk_container_add (GTK_CONTAINER (self), self->priv->frame);
        gtk_container_add (GTK_CONTAINER (self->priv->frame), self->priv->button);
        gtk_container_add (GTK_CONTAINER (self->priv->button), self->priv->hbox);
-       
+
        self->priv->label = gtk_label_new ("");
        gtk_widget_show (self->priv->label);
-       
+
        gtk_label_set_single_line_mode (GTK_LABEL (self->priv->label), TRUE);
        gtk_widget_set_halign (self->priv->label, GTK_ALIGN_START);
-       
+
        gtk_box_pack_start (GTK_BOX (self->priv->hbox), self->priv->label, FALSE, TRUE, 0);
-       
+
        self->priv->item = gtk_label_new ("");
        gtk_widget_show (self->priv->item);
-       
+
        gtk_label_set_single_line_mode (GTK_LABEL (self->priv->item), TRUE);
        gtk_widget_set_halign (self->priv->item, GTK_ALIGN_START);
-       
+
        gtk_box_pack_start (GTK_BOX (self->priv->hbox), self->priv->item, TRUE, TRUE, 0);
-       
+
        self->priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
        gtk_widget_show (self->priv->arrow);
-       
+
        gtk_box_pack_start (GTK_BOX (self->priv->hbox), self->priv->arrow, FALSE, TRUE, 0);
 
        self->priv->menu = gtk_menu_new ();
@@ -415,13 +415,13 @@ gedit_status_combo_box_new (const gchar *label)
  * @label: (allow-none):
  */
 void
-gedit_status_combo_box_set_label (GeditStatusComboBox *combo, 
+gedit_status_combo_box_set_label (GeditStatusComboBox *combo,
                                  const gchar         *label)
 {
        gchar *text;
 
        g_return_if_fail (GEDIT_IS_STATUS_COMBO_BOX (combo));
-       
+
        text = g_strconcat ("  ", label, ": ", NULL);
        gtk_label_set_markup (GTK_LABEL (combo->priv->label), text);
        g_free (text);
@@ -457,7 +457,7 @@ gedit_status_combo_box_add_item (GeditStatusComboBox *combo,
        g_return_if_fail (GTK_IS_MENU_ITEM (item));
 
        gtk_menu_shell_append (GTK_MENU_SHELL (combo->priv->menu), GTK_WIDGET (item));
-       
+
        gedit_status_combo_box_set_item_text (combo, item, text);
        g_signal_connect (item, "activate", G_CALLBACK (item_activated), combo);
 }
@@ -492,12 +492,12 @@ gedit_status_combo_box_get_item_text (GeditStatusComboBox *combo,
                                      GtkMenuItem         *item)
 {
        const gchar *ret = NULL;
-       
+
        g_return_val_if_fail (GEDIT_IS_STATUS_COMBO_BOX (combo), NULL);
        g_return_val_if_fail (GTK_IS_MENU_ITEM (item), NULL);
-       
+
        ret = g_object_get_data (G_OBJECT (item), COMBO_BOX_TEXT_DATA);
-       
+
        return ret;
 }
 
@@ -507,7 +507,7 @@ gedit_status_combo_box_get_item_text (GeditStatusComboBox *combo,
  * @item:
  * @text: (allow-none):
  */
-void 
+void
 gedit_status_combo_box_set_item_text (GeditStatusComboBox *combo,
                                      GtkMenuItem         *item,
                                      const gchar         *text)
@@ -515,7 +515,7 @@ gedit_status_combo_box_set_item_text (GeditStatusComboBox *combo,
        g_return_if_fail (GEDIT_IS_STATUS_COMBO_BOX (combo));
        g_return_if_fail (GTK_IS_MENU_ITEM (item));
 
-       g_object_set_data_full (G_OBJECT (item), 
+       g_object_set_data_full (G_OBJECT (item),
                                COMBO_BOX_TEXT_DATA,
                                g_strdup (text),
                                (GDestroyNotify)g_free);
@@ -535,7 +535,7 @@ GtkLabel *
 gedit_status_combo_box_get_item_label (GeditStatusComboBox *combo)
 {
        g_return_val_if_fail (GEDIT_IS_STATUS_COMBO_BOX (combo), NULL);
-       
+
        return GTK_LABEL (combo->priv->item);
 }
 
diff --git a/gedit/gedit-status-combo-box.h b/gedit/gedit-status-combo-box.h
index c893627..579de82 100644
--- a/gedit/gedit-status-combo-box.h
+++ b/gedit/gedit-status-combo-box.h
@@ -43,7 +43,7 @@ typedef struct _GeditStatusComboBoxClassPrivate       GeditStatusComboBoxClassPrivate;
 struct _GeditStatusComboBox
 {
        GtkEventBox parent;
-       
+
        GeditStatusComboBoxPrivate *priv;
 };
 
@@ -52,7 +52,7 @@ struct _GeditStatusComboBoxClass
        GtkEventBoxClass parent_class;
 
        GeditStatusComboBoxClassPrivate *priv;
-       
+
        void (*changed) (GeditStatusComboBox *combo,
                         GtkMenuItem         *item);
 };
diff --git a/gedit/gedit-statusbar.h b/gedit/gedit-statusbar.h
index eb7f799..f571ea9 100644
--- a/gedit/gedit-statusbar.h
+++ b/gedit/gedit-statusbar.h
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifndef GEDIT_STATUSBAR_H
diff --git a/gedit/gedit-tab-label.c b/gedit/gedit-tab-label.c
index abc88d9..efb4220 100644
--- a/gedit/gedit-tab-label.c
+++ b/gedit/gedit-tab-label.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
 
@@ -108,7 +108,7 @@ gedit_tab_label_get_property (GObject    *object,
 }
 
 static void
-close_button_clicked_cb (GtkWidget     *widget, 
+close_button_clicked_cb (GtkWidget     *widget,
                         GeditTabLabel *tab_label)
 {
        g_signal_emit (tab_label, signals[CLOSE_CLICKED], 0, NULL);
@@ -225,7 +225,7 @@ static void
 gedit_tab_label_class_init (GeditTabLabelClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
-       
+
        object_class->finalize = gedit_tab_label_finalize;
        object_class->set_property = gedit_tab_label_set_property;
        object_class->get_property = gedit_tab_label_get_property;
@@ -332,7 +332,7 @@ gedit_tab_label_set_close_button_sensitive (GeditTabLabel *tab_label,
 
        state = gedit_tab_get_state (tab_label->priv->tab);
 
-       gtk_widget_set_sensitive (tab_label->priv->close_button, 
+       gtk_widget_set_sensitive (tab_label->priv->close_button,
                                  tab_label->priv->close_button_sensitive &&
                                  (state != GEDIT_TAB_STATE_CLOSING) &&
                                  (state != GEDIT_TAB_STATE_SAVING)  &&
diff --git a/gedit/gedit-tab-label.h b/gedit/gedit-tab-label.h
index f69b003..a42253d 100644
--- a/gedit/gedit-tab-label.h
+++ b/gedit/gedit-tab-label.h
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
 
@@ -43,7 +43,7 @@ typedef struct _GeditTabLabelPrivate  GeditTabLabelPrivate;
 struct _GeditTabLabel
 {
        GtkBox parent;
-       
+
        GeditTabLabelPrivate *priv;
 };
 
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index adeb7a3..c33293b 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -2,7 +2,7 @@
  * gedit-tab.c
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -71,7 +71,7 @@ struct _GeditTabPrivate
        gint                    tmp_line_pos;
        gint                    tmp_column_pos;
        const GeditEncoding    *tmp_encoding;
-       
+
        GTimer                 *timer;
        guint                   times_called;
 
@@ -124,7 +124,7 @@ install_auto_save_timeout (GeditTab *tab)
        g_return_if_fail (tab->priv->auto_save_timeout <= 0);
        g_return_if_fail (tab->priv->auto_save);
        g_return_if_fail (tab->priv->auto_save_interval > 0);
-       
+
        g_return_if_fail (tab->priv->state != GEDIT_TAB_STATE_LOADING);
        g_return_if_fail (tab->priv->state != GEDIT_TAB_STATE_SAVING);
        g_return_if_fail (tab->priv->state != GEDIT_TAB_STATE_REVERTING);
@@ -147,7 +147,7 @@ install_auto_save_timeout_if_needed (GeditTab *tab)
        GeditDocument *doc;
 
        gedit_debug (DEBUG_TAB);
-       
+
        g_return_val_if_fail (tab->priv->auto_save_timeout <= 0, FALSE);
        g_return_val_if_fail ((tab->priv->state == GEDIT_TAB_STATE_NORMAL) ||
                              (tab->priv->state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW) ||
@@ -158,15 +158,15 @@ install_auto_save_timeout_if_needed (GeditTab *tab)
 
        doc = gedit_tab_get_document (tab);
 
-       if (tab->priv->auto_save && 
+       if (tab->priv->auto_save &&
            !gedit_document_is_untitled (doc) &&
            !gedit_document_get_readonly (doc))
-       { 
+       {
                install_auto_save_timeout (tab);
-               
+
                return TRUE;
        }
-       
+
        return FALSE;
 }
 
@@ -176,9 +176,9 @@ remove_auto_save_timeout (GeditTab *tab)
        gedit_debug (DEBUG_TAB);
 
        /* FIXME: check sugli stati */
-       
+
        g_return_if_fail (tab->priv->auto_save_timeout > 0);
-       
+
        g_source_remove (tab->priv->auto_save_timeout);
        tab->priv->auto_save_timeout = 0;
 }
@@ -200,7 +200,7 @@ gedit_tab_get_property (GObject    *object,
                case PROP_STATE:
                        g_value_set_enum (value,
                                          gedit_tab_get_state (tab));
-                       break;                  
+                       break;
                case PROP_AUTO_SAVE:
                        g_value_set_boolean (value,
                                             gedit_tab_get_auto_save_enabled (tab));
@@ -215,7 +215,7 @@ gedit_tab_get_property (GObject    *object,
                        break;
                default:
                        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
-                       break;                  
+                       break;
        }
 }
 
@@ -239,7 +239,7 @@ gedit_tab_set_property (GObject      *object,
                        break;
                default:
                        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
-                       break;                  
+                       break;
        }
 }
 
@@ -281,9 +281,9 @@ static void
 gedit_tab_grab_focus (GtkWidget *widget)
 {
        GeditTab *tab = GEDIT_TAB (widget);
-       
+
        GTK_WIDGET_CLASS (gedit_tab_parent_class)->grab_focus (widget);
-       
+
        if (tab->priv->info_bar != NULL)
        {
                gtk_widget_grab_focus (tab->priv->info_bar);
@@ -294,7 +294,7 @@ gedit_tab_grab_focus (GtkWidget *widget)
        }
 }
 
-static void 
+static void
 gedit_tab_class_init (GeditTabClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -304,9 +304,9 @@ gedit_tab_class_init (GeditTabClass *klass)
        object_class->finalize = gedit_tab_finalize;
        object_class->get_property = gedit_tab_get_property;
        object_class->set_property = gedit_tab_set_property;
-       
+
        gtkwidget_class->grab_focus = gedit_tab_grab_focus;
-       
+
        g_object_class_install_property (object_class,
                                         PROP_NAME,
                                         g_param_spec_string ("name",
@@ -381,7 +381,7 @@ GeditTabState
 gedit_tab_get_state (GeditTab *tab)
 {
        g_return_val_if_fail (GEDIT_IS_TAB (tab), GEDIT_TAB_STATE_NORMAL);
-       
+
        return tab->priv->state;
 }
 
@@ -443,7 +443,7 @@ set_view_properties_according_to_state (GeditTab      *tab,
        GeditView *view;
        gboolean val;
        gboolean hl_current_line;
-       
+
        hl_current_line = g_settings_get_boolean (tab->priv->editor,
                                                  GEDIT_SETTINGS_HIGHLIGHT_CURRENT_LINE);
 
@@ -496,24 +496,24 @@ gedit_tab_set_state (GeditTab      *tab,
        g_object_notify (G_OBJECT (tab), "can-close");
 }
 
-static void 
+static void
 document_location_notify_handler (GeditDocument *document,
                                  GParamSpec    *pspec,
                                  GeditTab      *tab)
 {
        gedit_debug (DEBUG_TAB);
-       
+
        /* Notify the change in the location */
        g_object_notify (G_OBJECT (tab), "name");
 }
 
-static void 
+static void
 document_shortname_notify_handler (GeditDocument *document,
                                   GParamSpec    *pspec,
                                   GeditTab      *tab)
 {
        gedit_debug (DEBUG_TAB);
-       
+
        /* Notify the change in the shortname */
        g_object_notify (G_OBJECT (tab), "name");
 }
@@ -556,7 +556,7 @@ set_info_bar (GeditTab  *tab,
                        old = gtk_bin_get_child (GTK_BIN (tab->priv->info_bar_revealer));
                        if (old != NULL)
                        {
-                               gtk_container_remove (GTK_CONTAINER (tab->priv->info_bar_revealer), old);     
                          
+                               gtk_container_remove (GTK_CONTAINER (tab->priv->info_bar_revealer), old);
                        }
                }
 
@@ -577,7 +577,7 @@ remove_tab (GeditTab *tab)
        gtk_container_remove (GTK_CONTAINER (notebook), GTK_WIDGET (tab));
 }
 
-static void 
+static void
 io_loading_error_info_bar_response (GtkWidget *info_bar,
                                    gint       response_id,
                                    GeditTab  *tab)
@@ -643,19 +643,19 @@ io_loading_error_info_bar_response (GtkWidget *info_bar,
        }
 }
 
-static void 
+static void
 file_already_open_warning_info_bar_response (GtkWidget   *info_bar,
                                             gint         response_id,
                                             GeditTab    *tab)
 {
        GeditView *view;
-       
+
        view = gedit_tab_get_view (tab);
-       
+
        if (response_id == GTK_RESPONSE_YES)
        {
                tab->priv->not_editable = FALSE;
-               
+
                gtk_text_view_set_editable (GTK_TEXT_VIEW (view),
                                            TRUE);
        }
@@ -671,19 +671,19 @@ load_cancelled (GtkWidget        *bar,
                 GeditTab         *tab)
 {
        g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->priv->info_bar));
-       
+
        g_object_ref (tab);
        gedit_document_load_cancel (gedit_tab_get_document (tab));
-       g_object_unref (tab);   
+       g_object_unref (tab);
 }
 
-static void 
+static void
 unrecoverable_reverting_error_info_bar_response (GtkWidget        *info_bar,
                                                 gint              response_id,
                                                 GeditTab         *tab)
 {
        GeditView *view;
-       
+
        gedit_tab_set_state (tab,
                             GEDIT_TAB_STATE_NORMAL);
 
@@ -692,8 +692,8 @@ unrecoverable_reverting_error_info_bar_response (GtkWidget        *info_bar,
        view = gedit_tab_get_view (tab);
 
        gtk_widget_grab_focus (GTK_WIDGET (view));
-       
-       install_auto_save_timeout_if_needed (tab);      
+
+       install_auto_save_timeout_if_needed (tab);
 }
 
 #define MAX_MSG_LENGTH 100
@@ -714,7 +714,7 @@ show_loading_info_bar (GeditTab *tab)
                return;
 
        gedit_debug (DEBUG_TAB);
-               
+
        doc = gedit_tab_get_document (tab);
        g_return_if_fail (doc != NULL);
 
@@ -750,7 +750,7 @@ show_loading_info_bar (GeditTab *tab)
                         * we have a title long 99 + 20, but I think it's a rare enough
                         * case to be acceptable. It's justa darn title afterall :)
                         */
-                       dirname = gedit_utils_str_middle_truncate (str, 
+                       dirname = gedit_utils_str_middle_truncate (str,
                                                                   MAX (20, MAX_MSG_LENGTH - len));
                        g_free (str);
                }
@@ -773,10 +773,10 @@ show_loading_info_bar (GeditTab *tab)
                }
                else
                {
-                       msg = g_strdup_printf (_("Reverting %s"), 
+                       msg = g_strdup_printf (_("Reverting %s"),
                                               name_markup);
                }
-               
+
                bar = gedit_progress_info_bar_new (GTK_STOCK_REVERT_TO_SAVED,
                                                   msg,
                                                   TRUE);
@@ -796,7 +796,7 @@ show_loading_info_bar (GeditTab *tab)
                }
                else
                {
-                       msg = g_strdup_printf (_("Loading %s"), 
+                       msg = g_strdup_printf (_("Loading %s"),
                                               name_markup);
                }
 
@@ -809,7 +809,7 @@ show_loading_info_bar (GeditTab *tab)
                          "response",
                          G_CALLBACK (load_cancelled),
                          tab);
-                                                
+
        gtk_widget_show (bar);
 
        set_info_bar (tab, bar);
@@ -834,12 +834,12 @@ show_saving_info_bar (GeditTab *tab)
        gint len;
 
        g_return_if_fail (tab->priv->tmp_save_location != NULL);
-       
+
        if (tab->priv->info_bar != NULL)
                return;
-       
+
        gedit_debug (DEBUG_TAB);
-               
+
        doc = gedit_tab_get_document (tab);
        g_return_if_fail (doc != NULL);
 
@@ -852,7 +852,7 @@ show_saving_info_bar (GeditTab *tab)
         */
        if (len > MAX_MSG_LENGTH)
        {
-               from = gedit_utils_str_middle_truncate (short_name, 
+               from = gedit_utils_str_middle_truncate (short_name,
                                                        MAX_MSG_LENGTH);
                g_free (short_name);
        }
@@ -862,10 +862,10 @@ show_saving_info_bar (GeditTab *tab)
 
                from = short_name;
                to = g_file_get_parse_name (tab->priv->tmp_save_location);
-               str = gedit_utils_str_middle_truncate (to, 
+               str = gedit_utils_str_middle_truncate (to,
                                                       MAX (20, MAX_MSG_LENGTH - len));
                g_free (to);
-                       
+
                to = str;
        }
 
@@ -912,12 +912,12 @@ info_bar_set_progress (GeditTab *tab,
        gedit_debug_message (DEBUG_TAB, "%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT, size, total_size);
 
        g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->priv->info_bar));
-       
+
        if (total_size == 0)
        {
                if (size != 0)
                        gedit_progress_info_bar_pulse (
-                                       GEDIT_PROGRESS_INFO_BAR (tab->priv->info_bar)); 
+                                       GEDIT_PROGRESS_INFO_BAR (tab->priv->info_bar));
                else
                        gedit_progress_info_bar_set_fraction (
                                GEDIT_PROGRESS_INFO_BAR (tab->priv->info_bar),
@@ -931,7 +931,7 @@ info_bar_set_progress (GeditTab *tab,
 
                gedit_progress_info_bar_set_fraction (
                                GEDIT_PROGRESS_INFO_BAR (tab->priv->info_bar),
-                               frac);          
+                               frac);
        }
 }
 
@@ -1020,7 +1020,7 @@ document_loaded (GeditDocument *document,
                    error->code == G_IO_ERROR_CANCELLED)
                {
                        /* remove the tab, but in an idle handler, since
-                        * we are in the handler of doc loaded and we 
+                        * we are in the handler of doc loaded and we
                         * don't want doc and tab to be finalized now.
                         */
                        g_idle_add ((GSourceFunc) remove_tab_idle, tab);
@@ -1047,7 +1047,7 @@ document_loaded (GeditDocument *document,
                        else
                        {
                                g_return_if_fail (tab->priv->state == GEDIT_TAB_STATE_REVERTING_ERROR);
-                               
+
                                emsg = gedit_unrecoverable_reverting_error_info_bar_new (location,
                                                                                         error);
 
@@ -1129,7 +1129,7 @@ document_loaded (GeditDocument *document,
                        for (l = all_documents; l != NULL; l = g_list_next (l))
                        {
                                GeditDocument *d = GEDIT_DOCUMENT (l->data);
-                       
+
                                if (d != document)
                                {
                                        GFile *loc;
@@ -1160,7 +1160,7 @@ document_loaded (GeditDocument *document,
                                                g_object_unref (loc);
                                                break;
                                        }
-                               
+
                                        if (loc != NULL)
                                                g_object_unref (loc);
                                }
@@ -1238,24 +1238,24 @@ end_saving (GeditTab *tab)
                tab->priv->tmp_save_location = NULL;
        }
        tab->priv->tmp_encoding = NULL;
-       
+
        install_auto_save_timeout_if_needed (tab);
 }
 
-static void 
+static void
 unrecoverable_saving_error_info_bar_response (GtkWidget        *info_bar,
                                               gint              response_id,
                                               GeditTab         *tab)
 {
        GeditView *view;
-       
+
        if (tab->priv->print_preview != NULL)
                gedit_tab_set_state (tab, GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW);
        else
                gedit_tab_set_state (tab, GEDIT_TAB_STATE_NORMAL);
 
        end_saving (tab);
-       
+
        set_info_bar (tab, NULL);
 
        view = gedit_tab_get_view (tab);
@@ -1263,7 +1263,7 @@ unrecoverable_saving_error_info_bar_response (GtkWidget        *info_bar,
        gtk_widget_grab_focus (GTK_WIDGET (view));
 }
 
-static void 
+static void
 invalid_character_info_bar_response (GtkWidget *info_bar,
                                      gint       response_id,
                                      GeditTab  *tab)
@@ -1286,7 +1286,7 @@ invalid_character_info_bar_response (GtkWidget *info_bar,
                tab->priv->save_flags |= GEDIT_DOCUMENT_SAVE_IGNORE_INVALID_CHARS;
 
                g_return_if_fail (tab->priv->auto_save_timeout <= 0);
-               
+
                /* Force saving */
                gedit_document_save (doc, tab->priv->save_flags);
        }
@@ -1298,7 +1298,7 @@ invalid_character_info_bar_response (GtkWidget *info_bar,
        }
 }
 
-static void 
+static void
 no_backup_error_info_bar_response (GtkWidget *info_bar,
                                       gint       response_id,
                                       GeditTab  *tab)
@@ -1321,7 +1321,7 @@ no_backup_error_info_bar_response (GtkWidget *info_bar,
                tab->priv->save_flags |= GEDIT_DOCUMENT_SAVE_IGNORE_BACKUP;
 
                g_return_if_fail (tab->priv->auto_save_timeout <= 0);
-               
+
                /* Force saving */
                gedit_document_save (doc, tab->priv->save_flags);
        }
@@ -1344,7 +1344,7 @@ externally_modified_error_info_bar_response (GtkWidget *info_bar,
 
                doc = gedit_tab_get_document (tab);
                g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
-               
+
                set_info_bar (tab, NULL);
 
                g_return_if_fail (tab->priv->tmp_save_location != NULL);
@@ -1353,21 +1353,21 @@ externally_modified_error_info_bar_response (GtkWidget *info_bar,
                gedit_tab_set_state (tab, GEDIT_TAB_STATE_SAVING);
 
                g_return_if_fail (tab->priv->auto_save_timeout <= 0);
-               
+
                /* ignore mtime should not be persisted in save flags across saves */
 
                /* Force saving */
                gedit_document_save (doc, tab->priv->save_flags | GEDIT_DOCUMENT_SAVE_IGNORE_MTIME);
        }
        else
-       {               
+       {
                unrecoverable_saving_error_info_bar_response (info_bar,
                                                                  response_id,
                                                                  tab);
        }
 }
 
-static void 
+static void
 recoverable_saving_error_info_bar_response (GtkWidget *info_bar,
                                                gint       response_id,
                                                GeditTab  *tab)
@@ -1376,12 +1376,12 @@ recoverable_saving_error_info_bar_response (GtkWidget *info_bar,
 
        doc = gedit_tab_get_document (tab);
        g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
-       
+
        if (response_id == GTK_RESPONSE_OK)
        {
                const GeditEncoding *encoding;
                gchar *tmp_uri;
-               
+
                encoding = gedit_conversion_error_info_bar_get_encoding (
                                                                        GTK_WIDGET (info_bar));
 
@@ -1390,17 +1390,17 @@ recoverable_saving_error_info_bar_response (GtkWidget *info_bar,
                set_info_bar (tab, NULL);
 
                g_return_if_fail (tab->priv->tmp_save_location != NULL);
-                               
+
                gedit_tab_set_state (tab, GEDIT_TAB_STATE_SAVING);
-                       
+
                tab->priv->tmp_encoding = encoding;
 
                tmp_uri = g_file_get_uri (tab->priv->tmp_save_location);
                gedit_debug_message (DEBUG_TAB, "Force saving with URI '%s'", tmp_uri);
                g_free (tmp_uri);
-                        
+
                g_return_if_fail (tab->priv->auto_save_timeout <= 0);
-               
+
                gedit_document_save_as (doc,
                                        tab->priv->tmp_save_location,
                                        tab->priv->tmp_encoding,
@@ -1409,7 +1409,7 @@ recoverable_saving_error_info_bar_response (GtkWidget *info_bar,
                                        tab->priv->save_flags);
        }
        else
-       {               
+       {
                unrecoverable_saving_error_info_bar_response (info_bar,
                                                                  response_id,
                                                                  tab);
@@ -1435,13 +1435,13 @@ document_saved (GeditDocument *document,
                tab->priv->timer = NULL;
        }
        tab->priv->times_called = 0;
-       
+
        set_info_bar (tab, NULL);
-       
+
        if (error != NULL)
        {
                gedit_tab_set_state (tab, GEDIT_TAB_STATE_SAVING_ERROR);
-               
+
                if (error->domain == GEDIT_DOCUMENT_ERROR &&
                    error->code == GEDIT_DOCUMENT_ERROR_EXTERNALLY_MODIFIED)
                {
@@ -1503,7 +1503,7 @@ document_saved (GeditDocument *document,
                        emsg = gedit_unrecoverable_saving_error_info_bar_new (tab->priv->tmp_save_location,
                                                                  error);
                        g_return_if_fail (emsg != NULL);
-       
+
                        set_info_bar (tab, emsg);
 
                        g_signal_connect (emsg,
@@ -1550,12 +1550,12 @@ document_saved (GeditDocument *document,
                        gedit_tab_set_state (tab, GEDIT_TAB_STATE_NORMAL);
 
                tab->priv->ask_if_externally_modified = TRUE;
-                       
+
                end_saving (tab);
        }
 }
 
-static void 
+static void
 externally_modified_notification_info_bar_response (GtkWidget *info_bar,
                                                        gint       response_id,
                                                        GeditTab  *tab)
@@ -1761,7 +1761,7 @@ _gedit_tab_new (void)
        return GTK_WIDGET (g_object_new (GEDIT_TYPE_TAB, NULL));
 }
 
-/* Whether create is TRUE, creates a new empty document if location does 
+/* Whether create is TRUE, creates a new empty document if location does
    not refer to an existing location */
 GtkWidget *
 _gedit_tab_new_from_location (GFile               *location,
@@ -1862,23 +1862,23 @@ _gedit_tab_get_name (GeditTab *tab)
        if (gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc)))
        {
                tab_name = g_strdup_printf ("*%s", docname);
-       } 
-       else 
+       }
+       else
        {
- #if 0         
-               if (gedit_document_get_readonly (doc)) 
+ #if 0
+               if (gedit_document_get_readonly (doc))
                {
-                       tab_name = g_strdup_printf ("%s [%s]", docname, 
+                       tab_name = g_strdup_printf ("%s [%s]", docname,
                                                /*Read only*/ _("RO"));
-               } 
-               else 
+               }
+               else
                {
                        tab_name = g_strdup_printf ("%s", docname);
                }
 #endif
                tab_name = g_strdup (docname);
        }
-       
+
        g_free (docname);
        g_free (name);
 
@@ -1911,7 +1911,7 @@ _gedit_tab_get_tooltip (GeditTab *tab)
                gchar *content_type;
                gchar *mime_type;
                gchar *content_description;
-               gchar *content_full_description; 
+               gchar *content_full_description;
                gchar *encoding;
                const GeditEncoding *enc;
 
@@ -1923,12 +1923,12 @@ _gedit_tab_get_tooltip (GeditTab *tab)
                case GEDIT_TAB_STATE_REVERTING_ERROR:
                        tip = g_strdup_printf (_("Error reverting file %s"),
                                               ruri_markup);
-                       break;                  
+                       break;
 
                case GEDIT_TAB_STATE_SAVING_ERROR:
                        tip =  g_strdup_printf (_("Error saving file %s"),
                                                ruri_markup);
-                       break;                  
+                       break;
                default:
                        content_type = gedit_document_get_content_type (doc);
                        mime_type = gedit_document_get_mime_type (doc);
@@ -1937,7 +1937,7 @@ _gedit_tab_get_tooltip (GeditTab *tab)
                        if (content_description == NULL)
                                content_full_description = g_strdup (mime_type);
                        else
-                               content_full_description = g_strdup_printf ("%s (%s)", 
+                               content_full_description = g_strdup_printf ("%s (%s)",
                                                content_description, mime_type);
 
                        g_free (content_type);
@@ -1964,9 +1964,9 @@ _gedit_tab_get_tooltip (GeditTab *tab)
                        break;
        }
 
-       g_free (ruri);  
+       g_free (ruri);
        g_free (ruri_markup);
-       
+
        return tip;
 }
 
@@ -1976,28 +1976,28 @@ resize_icon (GdkPixbuf *pixbuf,
 {
        gint width, height;
 
-       width = gdk_pixbuf_get_width (pixbuf); 
+       width = gdk_pixbuf_get_width (pixbuf);
        height = gdk_pixbuf_get_height (pixbuf);
 
        /* if the icon is larger than the nominal size, scale down */
-       if (MAX (width, height) > size) 
+       if (MAX (width, height) > size)
        {
                GdkPixbuf *scaled_pixbuf;
-               
-               if (width > height) 
+
+               if (width > height)
                {
                        height = height * size / width;
                        width = size;
-               } 
-               else 
+               }
+               else
                {
                        width = width * size / height;
                        height = size;
                }
-               
-               scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf, 
-                                                        width, 
-                                                        height, 
+
+               scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
+                                                        width,
+                                                        height,
                                                         GDK_INTERP_BILINEAR);
                g_object_unref (pixbuf);
                pixbuf = scaled_pixbuf;
@@ -2007,21 +2007,21 @@ resize_icon (GdkPixbuf *pixbuf,
 }
 
 static GdkPixbuf *
-get_stock_icon (GtkIconTheme *theme, 
+get_stock_icon (GtkIconTheme *theme,
                const gchar  *stock,
                gint          size)
 {
        GdkPixbuf *pixbuf;
-       
+
        pixbuf = gtk_icon_theme_load_icon (theme, stock, size, 0, NULL);
        if (pixbuf == NULL)
                return NULL;
-               
+
        return resize_icon (pixbuf, size);
 }
 
 static GdkPixbuf *
-get_icon (GtkIconTheme *theme, 
+get_icon (GtkIconTheme *theme,
          GFile        *location,
          gint          size)
 {
@@ -2035,9 +2035,9 @@ get_icon (GtkIconTheme *theme,
 
        /* FIXME: Doing a sync stat is bad, this should be fixed */
        info = g_file_query_info (location,
-                                 G_FILE_ATTRIBUTE_STANDARD_ICON, 
-                                 G_FILE_QUERY_INFO_NONE, 
-                                 NULL, 
+                                 G_FILE_ATTRIBUTE_STANDARD_ICON,
+                                 G_FILE_QUERY_INFO_NONE,
+                                 NULL,
                                  NULL);
        if (info == NULL)
                return get_stock_icon (theme, GTK_STOCK_FILE, size);
@@ -2051,17 +2051,17 @@ get_icon (GtkIconTheme *theme,
        }
 
        icon_info = gtk_icon_theme_lookup_by_gicon (theme, gicon, size, 0);
-       g_object_unref (info);  
-       
+       g_object_unref (info);
+
        if (icon_info == NULL)
                return get_stock_icon (theme, GTK_STOCK_FILE, size);
-       
+
        pixbuf = gtk_icon_info_load_icon (icon_info, NULL);
        g_object_unref (icon_info);
-       
+
        if (pixbuf == NULL)
                return get_stock_icon (theme, GTK_STOCK_FILE, size);
-               
+
        return resize_icon (pixbuf, size);
 }
 
@@ -2083,40 +2083,40 @@ _gedit_tab_get_icon (GeditTab *tab)
        g_return_val_if_fail (theme != NULL, NULL);
 
        gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (GTK_WIDGET (tab)),
-                                          GTK_ICON_SIZE_MENU, 
+                                          GTK_ICON_SIZE_MENU,
                                           NULL,
                                           &icon_size);
 
        switch (tab->priv->state)
        {
                case GEDIT_TAB_STATE_LOADING:
-                       pixbuf = get_stock_icon (theme, 
-                                                GTK_STOCK_OPEN, 
+                       pixbuf = get_stock_icon (theme,
+                                                GTK_STOCK_OPEN,
                                                 icon_size);
                        break;
 
                case GEDIT_TAB_STATE_REVERTING:
-                       pixbuf = get_stock_icon (theme, 
-                                                GTK_STOCK_REVERT_TO_SAVED, 
-                                                icon_size);                                             
+                       pixbuf = get_stock_icon (theme,
+                                                GTK_STOCK_REVERT_TO_SAVED,
+                                                icon_size);
                        break;
 
                case GEDIT_TAB_STATE_SAVING:
-                       pixbuf = get_stock_icon (theme, 
-                                                GTK_STOCK_SAVE, 
+                       pixbuf = get_stock_icon (theme,
+                                                GTK_STOCK_SAVE,
                                                 icon_size);
                        break;
 
                case GEDIT_TAB_STATE_PRINTING:
-                       pixbuf = get_stock_icon (theme, 
-                                                GTK_STOCK_PRINT, 
+                       pixbuf = get_stock_icon (theme,
+                                                GTK_STOCK_PRINT,
                                                 icon_size);
                        break;
 
                case GEDIT_TAB_STATE_PRINT_PREVIEWING:
-               case GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW:             
-                       pixbuf = get_stock_icon (theme, 
-                                                GTK_STOCK_PRINT_PREVIEW, 
+               case GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW:
+                       pixbuf = get_stock_icon (theme,
+                                                GTK_STOCK_PRINT_PREVIEW,
                                                 icon_size);
                        break;
 
@@ -2124,8 +2124,8 @@ _gedit_tab_get_icon (GeditTab *tab)
                case GEDIT_TAB_STATE_REVERTING_ERROR:
                case GEDIT_TAB_STATE_SAVING_ERROR:
                case GEDIT_TAB_STATE_GENERIC_ERROR:
-                       pixbuf = get_stock_icon (theme, 
-                                                GTK_STOCK_DIALOG_ERROR, 
+                       pixbuf = get_stock_icon (theme,
+                                                GTK_STOCK_DIALOG_ERROR,
                                                 icon_size);
                        break;
 
@@ -2165,11 +2165,11 @@ GeditTab *
 gedit_tab_get_from_document (GeditDocument *doc)
 {
        gpointer res;
-       
+
        g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL);
-       
+
        res = g_object_get_data (G_OBJECT (doc), GEDIT_TAB_KEY);
-       
+
        return (res != NULL) ? GEDIT_TAB (res) : NULL;
 }
 
@@ -2330,12 +2330,12 @@ gedit_tab_auto_save (GeditTab *tab)
        GeditDocument *doc;
 
        gedit_debug (DEBUG_TAB);
-       
+
        g_return_val_if_fail (tab->priv->tmp_save_location == NULL, FALSE);
        g_return_val_if_fail (tab->priv->tmp_encoding == NULL, FALSE);
-       
+
        doc = gedit_tab_get_document (tab);
-       
+
        g_return_val_if_fail (!gedit_document_is_untitled (doc), FALSE);
        g_return_val_if_fail (!gedit_document_get_readonly (doc), FALSE);
 
@@ -2349,7 +2349,7 @@ gedit_tab_auto_save (GeditTab *tab)
 
                return TRUE;
        }
-                       
+
        if ((tab->priv->state != GEDIT_TAB_STATE_NORMAL) &&
            (tab->priv->state != GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW))
        {
@@ -2368,12 +2368,12 @@ gedit_tab_auto_save (GeditTab *tab)
                /* Returns FALSE so the old timeout is "destroyed" */
                return FALSE;
        }
-       
+
        gedit_tab_set_state (tab, GEDIT_TAB_STATE_SAVING);
 
        /* uri used in error messages, will be freed in document_saved */
        tab->priv->tmp_save_location = gedit_document_get_location (doc);
-       tab->priv->tmp_encoding = gedit_document_get_encoding (doc); 
+       tab->priv->tmp_encoding = gedit_document_get_encoding (doc);
 
        /* Set auto_save_timeout to 0 since the timeout is going to be destroyed */
        tab->priv->auto_save_timeout = 0;
@@ -2383,9 +2383,9 @@ gedit_tab_auto_save (GeditTab *tab)
           error happens while saving, the last backup is not preserved since the user
           expressed his willing of saving the file */
        gedit_document_save (doc, tab->priv->save_flags | GEDIT_DOCUMENT_SAVE_PRESERVE_BACKUP);
-       
+
        gedit_debug_message (DEBUG_TAB, "Done");
-       
+
        /* Returns FALSE so the old timeout is "destroyed" */
        return FALSE;
 }
@@ -2509,7 +2509,7 @@ printing_cb (GeditPrintJob       *job,
             GeditPrintJobStatus  status,
             GeditTab            *tab)
 {
-       g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->priv->info_bar));    
+       g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->priv->info_bar));
 
        gtk_widget_show (tab->priv->info_bar);
 
@@ -2635,9 +2635,9 @@ print_preview_destroyed (GtkWidget *preview,
                 * preview. In this case let us continue whithout changing
                 * the state and show the document. See bug #352658 */
                gtk_widget_show (tab->priv->view_scrolled_window);
-               
+
                g_return_if_fail (tab->priv->state == GEDIT_TAB_STATE_PRINTING);
-       }       
+       }
 }
 #endif
 
@@ -2664,7 +2664,7 @@ show_preview_cb (GeditPrintJob       *job,
        g_signal_connect (tab->priv->print_preview,
                          "destroy",
                          G_CALLBACK (print_preview_destroyed),
-                         tab); 
+                         tab);
 */
        gedit_tab_set_state (tab, GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW);
 }
@@ -2677,7 +2677,7 @@ set_print_preview (GeditTab  *tab,
 {
        if (tab->priv->print_preview == print_preview)
                return;
-               
+
        if (tab->priv->print_preview != NULL)
                gtk_widget_destroy (tab->priv->print_preview);
 
@@ -2687,7 +2687,7 @@ set_print_preview (GeditTab  *tab,
                          tab->priv->print_preview,
                          TRUE,
                          TRUE,
-                         0);           
+                         0);
 
        gtk_widget_grab_focus (tab->priv->print_preview);
 
@@ -2705,17 +2705,17 @@ preview_finished_cb (GtkSourcePrintJob *pjob, GeditTab *tab)
 
        g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->priv->info_bar));
        set_info_bar (tab, NULL); /* destroy the info bar */
-       
+
        gjob = gtk_source_print_job_get_print_job (pjob);
 
-       preview = gedit_print_job_preview_new (gjob);   
+       preview = gedit_print_job_preview_new (gjob);
        g_object_unref (gjob);
-       
+
        set_print_preview (tab, preview);
-       
+
        gtk_widget_show (preview);
        g_object_unref (pjob);
-       
+
        gedit_tab_set_state (tab, GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW);
 }
 
@@ -2756,7 +2756,7 @@ show_printing_info_bar (GeditTab *tab, gboolean preview)
                          "response",
                          G_CALLBACK (print_cancelled),
                          tab);
-         
+
        set_info_bar (tab, bar);
 }
 
@@ -2779,7 +2779,7 @@ gedit_tab_print_or_print_preview (GeditTab                *tab,
        is_preview = (print_action == GTK_PRINT_OPERATION_ACTION_PREVIEW);
 
        tab->priv->print_job = gedit_print_job_new (view);
-       g_object_add_weak_pointer (G_OBJECT (tab->priv->print_job), 
+       g_object_add_weak_pointer (G_OBJECT (tab->priv->print_job),
                                   (gpointer *) &tab->priv->print_job);
 
        show_printing_info_bar (tab, is_preview);
@@ -2823,7 +2823,7 @@ gedit_tab_print_or_print_preview (GeditTab                *tab,
        }
 }
 
-void 
+void
 _gedit_tab_print (GeditTab *tab)
 {
        g_return_if_fail (GEDIT_IS_TAB (tab));
@@ -2849,12 +2849,12 @@ _gedit_tab_print_preview (GeditTab *tab)
                                          GTK_PRINT_OPERATION_ACTION_PREVIEW);
 }
 
-void 
+void
 _gedit_tab_mark_for_closing (GeditTab *tab)
 {
        g_return_if_fail (GEDIT_IS_TAB (tab));
        g_return_if_fail (tab->priv->state == GEDIT_TAB_STATE_NORMAL);
-       
+
        gedit_tab_set_state (tab, GEDIT_TAB_STATE_CLOSING);
 }
 
@@ -2903,9 +2903,9 @@ _gedit_tab_get_can_close (GeditTab *tab)
 /**
  * gedit_tab_get_auto_save_enabled:
  * @tab: a #GeditTab
- * 
+ *
  * Gets the current state for the autosave feature
- * 
+ *
  * Return value: %TRUE if the autosave is enabled, else %FALSE
  **/
 gboolean
@@ -2922,17 +2922,17 @@ gedit_tab_get_auto_save_enabled (GeditTab *tab)
  * gedit_tab_set_auto_save_enabled:
  * @tab: a #GeditTab
  * @enable: enable (%TRUE) or disable (%FALSE) auto save
- * 
+ *
  * Enables or disables the autosave feature. It does not install an
  * autosave timeout if the document is new or is read-only
  **/
 void
-gedit_tab_set_auto_save_enabled        (GeditTab *tab, 
+gedit_tab_set_auto_save_enabled        (GeditTab *tab,
                                 gboolean  enable)
 {
        GeditDocument *doc = NULL;
        GeditLockdownMask lockdown;
-       
+
        gedit_debug (DEBUG_TAB);
 
        g_return_if_fail (GEDIT_IS_TAB (tab));
@@ -2943,7 +2943,7 @@ gedit_tab_set_auto_save_enabled   (GeditTab *tab,
        {
                enable = FALSE;
        }
-       
+
        doc = gedit_tab_get_document (tab);
 
        if (tab->priv->auto_save == enable)
@@ -2951,7 +2951,7 @@ gedit_tab_set_auto_save_enabled   (GeditTab *tab,
 
        tab->priv->auto_save = enable;
 
-       if (enable && 
+       if (enable &&
            (tab->priv->auto_save_timeout <=0) &&
            !gedit_document_is_untitled (doc) &&
            !gedit_document_get_readonly (doc))
@@ -2967,30 +2967,30 @@ gedit_tab_set_auto_save_enabled (GeditTab *tab,
                }
                /* else: the timeout will be installed when loading/saving/reverting
                         will terminate */
-               
+
                return;
        }
-               
+
        if (!enable && (tab->priv->auto_save_timeout > 0))
        {
                remove_auto_save_timeout (tab);
-               
-               return; 
-       } 
 
-       g_return_if_fail ((!enable && (tab->priv->auto_save_timeout <= 0)) ||  
-                         gedit_document_is_untitled (doc) || gedit_document_get_readonly (doc)); 
+               return;
+       }
+
+       g_return_if_fail ((!enable && (tab->priv->auto_save_timeout <= 0)) ||
+                         gedit_document_is_untitled (doc) || gedit_document_get_readonly (doc));
 }
 
 /**
  * gedit_tab_get_auto_save_interval:
  * @tab: a #GeditTab
- * 
+ *
  * Gets the current interval for the autosaves
- * 
+ *
  * Return value: the value of the autosave
  **/
-gint 
+gint
 gedit_tab_get_auto_save_interval (GeditTab *tab)
 {
        gedit_debug (DEBUG_TAB);
@@ -3004,20 +3004,20 @@ gedit_tab_get_auto_save_interval (GeditTab *tab)
  * gedit_tab_set_auto_save_interval:
  * @tab: a #GeditTab
  * @interval: the new interval
- * 
+ *
  * Sets the interval for the autosave feature. It does nothing if the
  * interval is the same as the one already present. It removes the old
  * interval timeout and adds a new one with the autosave passed as
  * argument.
  **/
-void 
-gedit_tab_set_auto_save_interval (GeditTab *tab, 
+void
+gedit_tab_set_auto_save_interval (GeditTab *tab,
                                  gint      interval)
 {
        GeditDocument *doc = NULL;
-       
+
        gedit_debug (DEBUG_TAB);
-       
+
        g_return_if_fail (GEDIT_IS_TAB (tab));
 
        doc = gedit_tab_get_document(tab);
@@ -3029,7 +3029,7 @@ gedit_tab_set_auto_save_interval (GeditTab *tab,
                return;
 
        tab->priv->auto_save_interval = interval;
-               
+
        if (!tab->priv->auto_save)
                return;
 
diff --git a/gedit/gedit-tab.h b/gedit/gedit-tab.h
index ac924fc..6857a24 100644
--- a/gedit/gedit-tab.h
+++ b/gedit/gedit-tab.h
@@ -2,7 +2,7 @@
  * gedit-tab.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -43,13 +43,13 @@ typedef enum
        GEDIT_TAB_STATE_NORMAL = 0,
        GEDIT_TAB_STATE_LOADING,
        GEDIT_TAB_STATE_REVERTING,
-       GEDIT_TAB_STATE_SAVING, 
+       GEDIT_TAB_STATE_SAVING,
        GEDIT_TAB_STATE_PRINTING,
        GEDIT_TAB_STATE_PRINT_PREVIEWING,
        GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW,
        GEDIT_TAB_STATE_GENERIC_NOT_EDITABLE,
        GEDIT_TAB_STATE_LOADING_ERROR,
-       GEDIT_TAB_STATE_REVERTING_ERROR,        
+       GEDIT_TAB_STATE_REVERTING_ERROR,
        GEDIT_TAB_STATE_SAVING_ERROR,
        GEDIT_TAB_STATE_GENERIC_ERROR,
        GEDIT_TAB_STATE_CLOSING,
@@ -75,7 +75,7 @@ typedef struct _GeditTabPrivate GeditTabPrivate;
  */
 typedef struct _GeditTab GeditTab;
 
-struct _GeditTab 
+struct _GeditTab
 {
        GtkBox vbox;
 
@@ -88,7 +88,7 @@ struct _GeditTab
  */
 typedef struct _GeditTabClass GeditTabClass;
 
-struct _GeditTabClass 
+struct _GeditTabClass
 {
        GtkBoxClass parent_class;
 
@@ -110,18 +110,18 @@ GeditTab  *gedit_tab_get_from_document    (GeditDocument       *doc);
 
 GeditTabState   gedit_tab_get_state            (GeditTab            *tab);
 
-gboolean        gedit_tab_get_auto_save_enabled        
-                                               (GeditTab            *tab); 
+gboolean        gedit_tab_get_auto_save_enabled
+                                               (GeditTab            *tab);
 
-void            gedit_tab_set_auto_save_enabled        
-                                               (GeditTab            *tab, 
+void            gedit_tab_set_auto_save_enabled
+                                               (GeditTab            *tab,
                                                 gboolean            enable);
 
-gint            gedit_tab_get_auto_save_interval 
+gint            gedit_tab_get_auto_save_interval
                                                (GeditTab            *tab);
 
-void            gedit_tab_set_auto_save_interval 
-                                               (GeditTab            *tab, 
+void            gedit_tab_set_auto_save_interval
+                                               (GeditTab            *tab,
                                                 gint                interval);
 
 void            gedit_tab_set_info_bar         (GeditTab            *tab,
@@ -131,7 +131,7 @@ void                 gedit_tab_set_info_bar         (GeditTab            *tab,
  */
 GtkWidget      *_gedit_tab_new                 (void);
 
-/* Whether create is TRUE, creates a new empty document if location does 
+/* Whether create is TRUE, creates a new empty document if location does
    not refer to an existing location */
 GtkWidget      *_gedit_tab_new_from_location   (GFile               *location,
                                                 const GeditEncoding *encoding,
diff --git a/gedit/gedit-ui.h b/gedit/gedit-ui.h
index 21d6c16..410835b 100644
--- a/gedit/gedit-ui.h
+++ b/gedit/gedit-ui.h
@@ -2,7 +2,7 @@
  * gedit-ui.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -63,7 +63,7 @@ static const GtkActionEntry gedit_always_sensitive_menu_entries[] =
         N_("Open the gedit manual"), G_CALLBACK (_gedit_cmd_help_contents) },
        { "HelpAbout", GTK_STOCK_ABOUT, NULL, NULL,
         N_("About this application"), G_CALLBACK (_gedit_cmd_help_about) },
-       
+
        /* Fullscreen toolbar */
        { "LeaveFullscreen", GTK_STOCK_LEAVE_FULLSCREEN, NULL,
          NULL, N_("Leave fullscreen mode"),
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 5f7fa08..f690c03 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -314,7 +314,7 @@ run_search (GeditViewFrame   *frame,
                                                      &start_iter,
                                                      NULL);
        }
-       
+
        if (found)
        {
                gtk_text_buffer_place_cursor (GTK_TEXT_BUFFER (doc),
@@ -450,7 +450,7 @@ search_widget_key_press_event (GtkWidget      *widget,
                retval = TRUE;
        }
 
-       if (((event->state & modifiers) == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) && 
+       if (((event->state & modifiers) == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) &&
            (event->keyval == GDK_KEY_g || event->keyval == GDK_KEY_G))
        {
                search_again (frame, TRUE);
@@ -464,7 +464,7 @@ search_widget_key_press_event (GtkWidget      *widget,
                retval = TRUE;
        }
 
-       if (((event->state & modifiers) == GDK_CONTROL_MASK) && 
+       if (((event->state & modifiers) == GDK_CONTROL_MASK) &&
            (event->keyval == GDK_KEY_g || event->keyval == GDK_KEY_G))
        {
                search_again (frame, FALSE);
@@ -668,24 +668,24 @@ search_entry_insert_text (GtkEditable    *editable,
                        return;
 
                c = g_utf8_get_char (p);
-               
+
                if (((c == '-' || c == '+') && *position == 0) ||
                    (c == ':' && *position != 0))
                {
                        gchar *s = NULL;
-               
+
                        if (c == ':')
                        {
                                s = gtk_editable_get_chars (editable, 0, -1);
                                s = g_utf8_strchr (s, -1, ':');
                        }
-                       
+
                        if (s == NULL || s == p)
                        {
                                next = g_utf8_next_char (p);
                                p = next;
                        }
-                       
+
                        g_free (s);
                }
 
@@ -733,7 +733,7 @@ search_entry_insert_text (GtkEditable    *editable,
                insert_text = TRUE;
 
                g_signal_stop_emission_by_name (editable, "insert_text");
-               
+
                gtk_editable_insert_text (editable, escaped_text, new_len, position);
 
                insert_text = FALSE;
diff --git a/gedit/gedit-view-frame.h b/gedit/gedit-view-frame.h
index 892aa9a..12265da 100644
--- a/gedit/gedit-view-frame.h
+++ b/gedit/gedit-view-frame.h
@@ -44,7 +44,7 @@ typedef struct _GeditViewFrameClass           GeditViewFrameClass;
 struct _GeditViewFrame
 {
        GtkBox parent;
-       
+
        GeditViewFramePrivate *priv;
 };
 
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index d79f888..07cf61f 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -3,8 +3,8 @@
  * This file is part of gedit
  *
  * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
- * Copyright (C) 2000, 2002 Chema Celorio, Paolo Maggi 
- * Copyright (C) 2003-2005 Paolo Maggi  
+ * Copyright (C) 2000, 2002 Chema Celorio, Paolo Maggi
+ * Copyright (C) 2003-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
@@ -18,16 +18,16 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
+ * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
  * See the ChangeLog files for a list of changes.
  *
- * $Id$ 
+ * $Id$
  */
 
 #ifdef HAVE_CONFIG_H
@@ -87,13 +87,13 @@ enum
 static guint view_signals [LAST_SIGNAL] = { 0 };
 
 static void
-document_read_only_notify_handler (GeditDocument *document, 
+document_read_only_notify_handler (GeditDocument *document,
                                   GParamSpec    *pspec,
                                   GeditView     *view)
 {
        gedit_debug (DEBUG_VIEW);
 
-       gtk_text_view_set_editable (GTK_TEXT_VIEW (view), 
+       gtk_text_view_set_editable (GTK_TEXT_VIEW (view),
                                    !gedit_document_get_readonly (document));
 }
 
@@ -109,7 +109,7 @@ search_highlight_updated_cb (GeditDocument *doc,
        gint y;
        gint height;
        GtkTextView *text_view;
-       
+
        text_view = GTK_TEXT_VIEW (view);
 
        g_return_if_fail (gedit_document_get_enable_search_highlighting (
@@ -160,7 +160,7 @@ current_buffer_removed (GeditView *view)
                g_signal_handlers_disconnect_by_func (view->priv->current_buffer,
                                                      search_highlight_updated_cb,
                                                      view);
-                                    
+
                g_object_unref (view->priv->current_buffer);
                view->priv->current_buffer = NULL;
        }
@@ -172,10 +172,10 @@ on_notify_buffer_cb (GeditView  *view,
                     gpointer    userdata)
 {
        GtkTextBuffer *buffer;
-       
+
        current_buffer_removed (view);
        buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
-       
+
        if (buffer == NULL || !GEDIT_IS_DOCUMENT (buffer))
                return;
 
@@ -185,7 +185,7 @@ on_notify_buffer_cb (GeditView  *view,
                          G_CALLBACK (document_read_only_notify_handler),
                          view);
 
-       gtk_text_view_set_editable (GTK_TEXT_VIEW (view), 
+       gtk_text_view_set_editable (GTK_TEXT_VIEW (view),
                                    !gedit_document_get_readonly (GEDIT_DOCUMENT (buffer)));
 
        g_signal_connect (buffer,
@@ -194,7 +194,7 @@ on_notify_buffer_cb (GeditView  *view,
                          view);
 }
 
-static void 
+static void
 gedit_view_init (GeditView *view)
 {
        GtkTargetList *tl;
@@ -288,7 +288,7 @@ gedit_view_constructed (GObject *object)
 
        /*
         *  Set tab, fonts, wrap mode, colors, etc. according
-        *  to preferences 
+        *  to preferences
         */
        if (!use_default_font)
        {
@@ -327,7 +327,7 @@ gedit_view_constructed (GObject *object)
        smart_home_end = g_settings_get_enum (view->priv->editor_settings,
                                              GEDIT_SETTINGS_SMART_HOME_END);
 
-       g_object_set (G_OBJECT (view), 
+       g_object_set (G_OBJECT (view),
                      "wrap_mode", wrap_mode,
                      "show_line_numbers", display_line_numbers,
                      "auto_indent", auto_indent,
@@ -371,7 +371,7 @@ gedit_view_draw (GtkWidget *widget,
        {
                GdkRectangle visible_rect;
                GtkTextIter iter1, iter2;
-               
+
                gtk_text_view_get_visible_rect (text_view, &visible_rect);
                gtk_text_view_get_line_at_y (text_view, &iter1,
                                             visible_rect.y, NULL);
@@ -379,7 +379,7 @@ gedit_view_draw (GtkWidget *widget,
                                             visible_rect.y
                                             + visible_rect.height, NULL);
                gtk_text_iter_forward_line (&iter2);
-                                    
+
                _gedit_document_search_region (doc,
                                               &iter1,
                                               &iter2);
@@ -394,14 +394,14 @@ drag_get_uri_target (GtkWidget      *widget,
 {
        GdkAtom target;
        GtkTargetList *tl;
-       
+
        tl = gtk_target_list_new (NULL, 0);
        gtk_target_list_add_uri_targets (tl, 0);
-       
+
        target = gtk_drag_dest_find_target (widget, context, tl);
        gtk_target_list_unref (tl);
-       
-       return target;  
+
+       return target;
 }
 
 static gboolean
@@ -413,13 +413,13 @@ gedit_view_drag_motion (GtkWidget      *widget,
 {
        gboolean result;
 
-       /* Chain up to allow textview to scroll and position dnd mark, note 
+       /* Chain up to allow textview to scroll and position dnd mark, note
         * that this needs to be checked if gtksourceview or gtktextview
         * changes drag_motion behaviour */
        result = GTK_WIDGET_CLASS (gedit_view_parent_class)->drag_motion (widget, context, x, y, timestamp);
 
        /* If this is a URL, deal with it here */
-       if (drag_get_uri_target (widget, context) != GDK_NONE) 
+       if (drag_get_uri_target (widget, context) != GDK_NONE)
        {
                gdk_drag_status (context,
                                 gdk_drag_context_get_suggested_action (context),
@@ -461,12 +461,12 @@ gedit_view_drag_data_received (GtkWidget        *widget,
                gchar **uri_list;
 
                uri_list = gedit_utils_drop_get_uris (selection_data);
-               
+
                if (uri_list != NULL)
                {
                        g_signal_emit (widget, view_signals[DROP_URIS], 0, uri_list);
                        g_strfreev (uri_list);
-                       
+
                        gtk_drag_finish (context, TRUE, FALSE, timestamp);
                }
        }
@@ -558,11 +558,11 @@ create_line_numbers_menu (GtkWidget *view)
                         item,
                         "active",
                         G_SETTINGS_BIND_SET);
-       
+
        gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
-       
+
        gtk_widget_show_all (menu);
-       
+
        return menu;
 }
 
@@ -574,19 +574,19 @@ show_line_numbers_menu (GtkWidget      *view,
 
        menu = create_line_numbers_menu (view);
 
-       gtk_menu_popup (GTK_MENU (menu), 
-                       NULL, 
+       gtk_menu_popup (GTK_MENU (menu),
+                       NULL,
                        NULL,
-                       NULL, 
                        NULL,
-                       event->button, 
+                       NULL,
+                       event->button,
                        event->time);
 }
 
 static gboolean
 gedit_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
 {
-       if ((event->type == GDK_BUTTON_PRESS) && 
+       if ((event->type == GDK_BUTTON_PRESS) &&
            (event->button == GDK_BUTTON_SECONDARY) &&
            (event->window == gtk_text_view_get_window (GTK_TEXT_VIEW (widget),
                                                        GTK_TEXT_WINDOW_LEFT)))
@@ -676,7 +676,7 @@ delete_line (GtkTextView *text_view,
        if (gtk_text_buffer_get_selection_bounds (buffer, &start, &end))
        {
                gtk_text_iter_order (&start, &end);
-               
+
                if (gtk_text_iter_starts_line (&end))
                {
                        /* Do no delete the line with the cursor if the cursor
@@ -688,29 +688,29 @@ delete_line (GtkTextView *text_view,
                        count = 1;
                }
        }
-       
+
        gtk_text_iter_set_line_offset (&start, 0);
 
        if (count > 0)
-       {               
+       {
                gtk_text_iter_forward_lines (&end, count);
 
                if (gtk_text_iter_is_end (&end))
-               {               
+               {
                        if (gtk_text_iter_backward_line (&start) && !gtk_text_iter_ends_line (&start))
                                gtk_text_iter_forward_to_line_end (&start);
                }
        }
-       else if (count < 0) 
+       else if (count < 0)
        {
                if (!gtk_text_iter_ends_line (&end))
                        gtk_text_iter_forward_to_line_end (&end);
 
-               while (count < 0) 
+               while (count < 0)
                {
                        if (!gtk_text_iter_backward_line (&start))
                                break;
-                               
+
                        ++count;
                }
 
@@ -729,12 +729,12 @@ delete_line (GtkTextView *text_view,
        {
                GtkTextIter cur = start;
                gtk_text_iter_set_line_offset (&cur, 0);
-               
+
                gtk_text_buffer_begin_user_action (buffer);
 
                gtk_text_buffer_place_cursor (buffer, &cur);
 
-               gtk_text_buffer_delete_interactive (buffer, 
+               gtk_text_buffer_delete_interactive (buffer,
                                                    &start,
                                                    &end,
                                                    gtk_text_view_get_editable (text_view));
@@ -811,10 +811,10 @@ gedit_view_class_init (GeditViewClass *klass)
 
        /* A new signal DROP_URIS has been added to allow plugins to intercept
         * the default dnd behaviour of 'text/uri-list'. GeditView now handles
-        * dnd in the default handlers of drag_drop, drag_motion and 
+        * dnd in the default handlers of drag_drop, drag_motion and
         * drag_data_received. The view emits drop_uris from drag_data_received
-        * if valid uris have been dropped. Plugins should connect to 
-        * drag_motion, drag_drop and drag_data_received to change this 
+        * if valid uris have been dropped. Plugins should connect to
+        * drag_motion, drag_drop and drag_data_received to change this
         * default behaviour. They should _NOT_ use this signal because this
         * will not prevent gedit from loading the uri
         */
@@ -842,8 +842,8 @@ gedit_view_class_init (GeditViewClass *klass)
 /**
  * gedit_view_new:
  * @doc: a #GeditDocument
- * 
- * Creates a new #GeditView object displaying the @doc document. 
+ *
+ * Creates a new #GeditView object displaying the @doc document.
  * @doc cannot be %NULL.
  *
  * Return value: a new #GeditView
@@ -941,7 +941,7 @@ gedit_view_paste_clipboard (GeditView *view)
 /**
  * gedit_view_delete_selection:
  * @view: a #GeditView
- * 
+ *
  * Deletes the text currently selected in the #GtkTextBuffer associated
  * to the view and scroll to the cursor position.
  **/
@@ -974,7 +974,7 @@ gedit_view_delete_selection (GeditView *view)
 /**
  * gedit_view_select_all:
  * @view: a #GeditView
- * 
+ *
  * Selects all the text displayed in the @view.
  **/
 void
@@ -997,7 +997,7 @@ gedit_view_select_all (GeditView *view)
 /**
  * gedit_view_scroll_to_cursor:
  * @view: a #GeditView
- * 
+ *
  * Scrolls the @view to the cursor position.
  **/
 void
@@ -1026,13 +1026,13 @@ gedit_view_scroll_to_cursor (GeditView *view)
  * @view: a #GeditView
  * @def: whether to reset the default font
  * @font_name: the name of the font to use
- * 
+ *
  * If @def is #TRUE, resets the font of the @view to the default font
  * otherwise sets it to @font_name.
  **/
 void
-gedit_view_set_font (GeditView   *view, 
-                    gboolean     def, 
+gedit_view_set_font (GeditView   *view,
+                    gboolean     def,
                     const gchar *font_name)
 {
        PangoFontDescription *font_desc;
diff --git a/gedit/gedit-view.h b/gedit/gedit-view.h
index 3dc81ef..367d937 100644
--- a/gedit/gedit-view.h
+++ b/gedit/gedit-view.h
@@ -4,7 +4,7 @@
  *
  * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
  * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
- * 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
@@ -18,14 +18,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifndef __GEDIT_VIEW_H__
diff --git a/gedit/gedit-window-private.h b/gedit/gedit-window-private.h
index e6a7f54..0599ba2 100644
--- a/gedit/gedit-window-private.h
+++ b/gedit/gedit-window-private.h
@@ -2,7 +2,7 @@
  * gedit-window-private.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -59,10 +59,10 @@ struct _GeditWindowPrivate
 
        GtkWidget      *hpaned;
        GtkWidget      *vpaned;
-       
+
        GtkWidget      *tab_width_combo;
        GtkWidget      *language_combo;
-       
+
        GeditMessageBus *message_bus;
        PeasExtensionSet *extensions;
 
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 4abcc49..48d429a 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2,7 +2,7 @@
  * gedit-window.c
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -117,7 +117,7 @@ gedit_window_get_property (GObject    *object,
                        break;
                default:
                        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
-                       break;                  
+                       break;
        }
 }
 
@@ -229,7 +229,7 @@ gedit_window_dispose (GObject *object)
        if (window->priv->fullscreen_controls != NULL)
        {
                gtk_widget_destroy (window->priv->fullscreen_controls);
-               
+
                window->priv->fullscreen_controls = NULL;
        }
 
@@ -318,7 +318,7 @@ gedit_window_key_press_event (GtkWidget   *widget,
                              GdkEventKey *event)
 {
        static gpointer grand_parent_class = NULL;
-       
+
        GtkWindow *window = GTK_WINDOW (widget);
        gboolean handled = FALSE;
 
@@ -351,7 +351,7 @@ gedit_window_key_press_event (GtkWidget   *widget,
                                                       GEDIT_WINDOW (widget),
                                                       (GdkEvent *)event);
        }
-       
+
        return TRUE;
 }
 
@@ -425,7 +425,7 @@ gedit_window_class_init (GeditWindowClass *klass)
                              NULL, NULL,
                              g_cclosure_marshal_VOID__VOID,
                              G_TYPE_NONE,
-                             0);                                                     
+                             0);
 
        g_object_class_install_property (object_class,
                                         PROP_STATE,
@@ -550,7 +550,7 @@ update_next_prev_doc_sensitivity (GeditWindow *window,
 
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "DocumentsNextDocument");
-       gtk_action_set_sensitive (action, 
+       gtk_action_set_sensitive (action,
                                  tab_number < gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) - 1);
 }
 
@@ -726,7 +726,7 @@ set_sensitivity_according_to_tab (GeditWindow *window,
                                  (state_normal ||
                                  (state == GEDIT_TAB_STATE_SHOWING_PRINT_PREVIEW)) &&
                                  !(lockdown & GEDIT_LOCKDOWN_PRINTING));
-                                 
+
        action = gtk_action_group_get_action (window->priv->close_action_group,
                                              "FileClose");
 
@@ -740,13 +740,13 @@ set_sensitivity_according_to_tab (GeditWindow *window,
 
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "EditUndo");
-       gtk_action_set_sensitive (action, 
+       gtk_action_set_sensitive (action,
                                  state_normal &&
                                  gtk_source_buffer_can_undo (GTK_SOURCE_BUFFER (doc)));
 
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "EditRedo");
-       gtk_action_set_sensitive (action, 
+       gtk_action_set_sensitive (action,
                                  state_normal &&
                                  gtk_source_buffer_can_redo (GTK_SOURCE_BUFFER (doc)));
 
@@ -763,7 +763,7 @@ set_sensitivity_according_to_tab (GeditWindow *window,
                                  (state_normal ||
                                   state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION) &&
                                  gtk_text_buffer_get_has_selection (GTK_TEXT_BUFFER (doc)));
-                                 
+
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "EditPaste");
        if (state_normal && editable)
@@ -819,10 +819,10 @@ set_sensitivity_according_to_tab (GeditWindow *window,
        gtk_action_set_sensitive (action,
                                  (state_normal ||
                                   state == GEDIT_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION));
-       
+
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "ViewHighlightMode");
-       gtk_action_set_sensitive (action, 
+       gtk_action_set_sensitive (action,
                                  (state != GEDIT_TAB_STATE_CLOSING) &&
                                  enable_syntax_highlighting);
 
@@ -849,7 +849,7 @@ language_toggled (GtkToggleAction *action,
                return;
 
        lang_id = gtk_action_get_name (GTK_ACTION (action));
-       
+
        if (strcmp (lang_id, LANGUAGE_NONE) == 0)
        {
                /* Normal (no highlighting) */
@@ -910,14 +910,14 @@ create_language_menu_item (GtkSourceLanguage *lang,
        if (section_action == NULL)
        {
                gchar *section_name;
-               
+
                section_name = gedit_utils_escape_underscores (section, -1);
-               
+
                section_action = gtk_action_new (escaped_section,
                                                 section_name,
                                                 NULL,
                                                 NULL);
-                                                
+
                g_free (section_name);
 
                gtk_action_group_add_action (window->priv->languages_action_group,
@@ -936,9 +936,9 @@ create_language_menu_item (GtkSourceLanguage *lang,
        /* now add the language item to the section */
        lang_name = gtk_source_language_get_name (lang);
        lang_id = gtk_source_language_get_id (lang);
-       
+
        escaped_lang_name = gedit_utils_escape_underscores (lang_name, -1);
-       
+
        tip = g_strdup_printf (_("Use %s highlight mode"), lang_name);
        path = g_strdup_printf ("/MenuBar/ViewMenu/ViewHighlightModeMenu/LanguagesMenuPlaceholder/%s",
                                escaped_section);
@@ -971,7 +971,7 @@ create_language_menu_item (GtkSourceLanguage *lang,
        gtk_ui_manager_add_ui (window->priv->manager,
                               ui_id,
                               path,
-                              lang_id, 
+                              lang_id,
                               lang_id,
                               GTK_UI_MANAGER_MENUITEM,
                               FALSE);
@@ -1041,8 +1041,8 @@ create_languages_menu (GeditWindow *window)
        gedit_debug (DEBUG_WINDOW);
 
        /* add the "Plain Text" item before all the others */
-       
-       /* Translators: "Plain Text" means that no highlight mode is selected in the 
+
+       /* Translators: "Plain Text" means that no highlight mode is selected in the
         * "View->Highlight Mode" submenu and so syntax highlighting is disabled */
        action_none = gtk_radio_action_new (LANGUAGE_NONE, _("Plain Text"),
                                            _("Disable syntax highlighting"),
@@ -1063,7 +1063,7 @@ create_languages_menu (GeditWindow *window)
        gtk_ui_manager_add_ui (window->priv->manager,
                               id,
                               "/MenuBar/ViewMenu/ViewHighlightModeMenu/LanguagesMenuPlaceholder",
-                              LANGUAGE_NONE, 
+                              LANGUAGE_NONE,
                               LANGUAGE_NONE,
                               GTK_UI_MANAGER_MENUITEM,
                               TRUE);
@@ -1185,7 +1185,7 @@ open_recent_file (GFile       *location,
 
        locations = g_slist_prepend (locations, (gpointer) location);
        loaded = gedit_commands_load_locations (window, locations, NULL, 0, 0);
-       
+
        if (!loaded || loaded->next) /* if it doesn't contain just 1 element */
        {
                _gedit_recent_remove (window, location);
@@ -1341,13 +1341,13 @@ update_recent_files_menu (GeditWindow *window)
                if (i >= 10)
                {
                        label = g_strdup_printf ("%d.  %s",
-                                                i, 
+                                                i,
                                                 escaped);
                }
                else
                {
                        label = g_strdup_printf ("_%d.  %s",
-                                                i, 
+                                                i,
                                                 escaped);
                }
 
@@ -1475,7 +1475,7 @@ setup_toolbar_open_button (GeditWindow *window,
 }
 
 static void
-create_menu_bar_and_toolbar (GeditWindow *window, 
+create_menu_bar_and_toolbar (GeditWindow *window,
                             GtkWidget   *main_box)
 {
        GtkActionGroup *action_group;
@@ -1629,10 +1629,10 @@ create_menu_bar_and_toolbar (GeditWindow *window,
        g_object_unref (action_group);
 
        window->priv->menubar = gtk_ui_manager_get_widget (manager, "/MenuBar");
-       gtk_box_pack_start (GTK_BOX (main_box), 
+       gtk_box_pack_start (GTK_BOX (main_box),
                            window->priv->menubar,
-                           FALSE, 
-                           FALSE, 
+                           FALSE,
+                           FALSE,
                            0);
 
        window->priv->toolbar = gtk_ui_manager_get_widget (manager, "/ToolBar");
@@ -1654,7 +1654,7 @@ create_menu_bar_and_toolbar (GeditWindow *window,
        gtk_toolbar_unset_style (GTK_TOOLBAR (window->priv->toolbar));
 #endif
        set_toolbar_visibility (window, NULL);
-       
+
        setup_toolbar_open_button (window, window->priv->toolbar);
 
        gtk_container_foreach (GTK_CONTAINER (window->priv->toolbar),
@@ -1697,7 +1697,7 @@ get_menu_tip_for_tab (GeditTab *tab)
        /* Translators: %s is a URI */
        tip =  g_strdup_printf (_("Activate '%s'"), ruri);
        g_free (ruri);
-       
+
        return tip;
 }
 
@@ -1927,10 +1927,10 @@ set_statusbar_style (GeditWindow *window,
 
        action = gtk_action_group_get_action (window->priv->always_sensitive_action_group,
                                              "ViewStatusbar");
-                                             
+
        if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)) != visible)
                gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), visible);
-               
+
        return visible;
 }
 
@@ -1961,17 +1961,17 @@ tab_width_combo_changed (GeditStatusComboBox *combo,
 {
        GeditView *view;
        guint width_data = 0;
-       
+
        view = gedit_window_get_active_view (window);
-       
+
        if (!view)
                return;
-       
+
        width_data = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item), TAB_WIDTH_DATA));
-       
+
        if (width_data == 0)
                return;
-       
+
        g_signal_handler_block (view, window->priv->tab_width_id);
        gtk_source_view_set_tab_width (GTK_SOURCE_VIEW (view), width_data);
        g_signal_handler_unblock (view, window->priv->tab_width_id);
@@ -1982,9 +1982,9 @@ use_spaces_toggled (GtkCheckMenuItem *item,
                    GeditWindow      *window)
 {
        GeditView *view;
-       
+
        view = gedit_window_get_active_view (window);
-       
+
        g_signal_handler_block (view, window->priv->spaces_instead_of_tabs_id);
        gtk_source_view_set_insert_spaces_instead_of_tabs (
                        GTK_SOURCE_VIEW (view),
@@ -1999,14 +1999,14 @@ language_combo_changed (GeditStatusComboBox *combo,
 {
        GeditDocument *doc;
        GtkSourceLanguage *language;
-       
+
        doc = gedit_window_get_active_document (window);
-       
+
        if (!doc)
                return;
-       
+
        language = GTK_SOURCE_LANGUAGE (g_object_get_data (G_OBJECT (item), LANGUAGE_DATA));
-       
+
        g_signal_handler_block (doc, window->priv->language_changed_id);
        gedit_document_set_language (doc, language);
        g_signal_handler_unblock (doc, window->priv->language_changed_id);
@@ -2017,7 +2017,7 @@ typedef struct
        const gchar *label;
        guint width;
 } TabWidthDefinition;
-        
+
 static void
 fill_tab_width_combo (GeditWindow *window)
 {
@@ -2028,16 +2028,16 @@ fill_tab_width_combo (GeditWindow *window)
                {"", 0}, /* custom size */
                {NULL, 0}
        };
-       
+
        GeditStatusComboBox *combo = GEDIT_STATUS_COMBO_BOX (window->priv->tab_width_combo);
        guint i = 0;
        GtkWidget *item;
-       
+
        while (defs[i].label != NULL)
        {
                item = gtk_menu_item_new_with_label (defs[i].label);
                g_object_set_data (G_OBJECT (item), TAB_WIDTH_DATA, GINT_TO_POINTER (defs[i].width));
-               
+
                gedit_status_combo_box_add_item (combo,
                                                 GTK_MENU_ITEM (item),
                                                 defs[i].label);
@@ -2047,18 +2047,18 @@ fill_tab_width_combo (GeditWindow *window)
 
                ++i;
        }
-       
+
        item = gtk_separator_menu_item_new ();
        gedit_status_combo_box_add_item (combo, GTK_MENU_ITEM (item), NULL);
        gtk_widget_show (item);
-       
+
        item = gtk_check_menu_item_new_with_label (_("Use Spaces"));
        gedit_status_combo_box_add_item (combo, GTK_MENU_ITEM (item), NULL);
        gtk_widget_show (item);
-       
-       g_signal_connect (item, 
-                         "toggled", 
-                         G_CALLBACK (use_spaces_toggled), 
+
+       g_signal_connect (item,
+                         "toggled",
+                         G_CALLBACK (use_spaces_toggled),
                          window);
 }
 
@@ -2074,7 +2074,7 @@ fill_language_combo (GeditWindow *window)
        name = _("Plain Text");
        menu_item = gtk_menu_item_new_with_label (name);
        gtk_widget_show (menu_item);
-       
+
        g_object_set_data (G_OBJECT (menu_item), LANGUAGE_DATA, NULL);
        gedit_status_combo_box_add_item (GEDIT_STATUS_COMBO_BOX (window->priv->language_combo),
                                         GTK_MENU_ITEM (menu_item),
@@ -2092,9 +2092,9 @@ fill_language_combo (GeditWindow *window)
                name = gtk_source_language_get_name (lang);
                menu_item = gtk_menu_item_new_with_label (name);
                gtk_widget_show (menu_item);
-               
+
                g_object_set_data_full (G_OBJECT (menu_item),
-                                       LANGUAGE_DATA,          
+                                       LANGUAGE_DATA,
                                        g_object_ref (lang),
                                        (GDestroyNotify)g_object_unref);
 
@@ -2105,7 +2105,7 @@ fill_language_combo (GeditWindow *window)
 }
 
 static void
-create_statusbar (GeditWindow *window, 
+create_statusbar (GeditWindow *window,
                  GtkWidget   *main_box)
 {
        gedit_debug (DEBUG_WINDOW);
@@ -2121,8 +2121,8 @@ create_statusbar (GeditWindow *window,
 
        gtk_box_pack_end (GTK_BOX (main_box),
                          window->priv->statusbar,
-                         FALSE, 
-                         TRUE, 
+                         FALSE,
+                         TRUE,
                          0);
 
        window->priv->tab_width_combo = gedit_status_combo_box_new (_("Tab Width"));
@@ -2139,7 +2139,7 @@ create_statusbar (GeditWindow *window,
                          "changed",
                          G_CALLBACK (tab_width_combo_changed),
                          window);
-                         
+
        window->priv->language_combo = gedit_status_combo_box_new (NULL);
        gtk_widget_show (window->priv->language_combo);
        gtk_box_pack_end (GTK_BOX (window->priv->statusbar),
@@ -2193,7 +2193,7 @@ clone_window (GeditWindow *origin)
                gtk_window_unstick (GTK_WINDOW (window));
 
        /* set the panels size, the paned position will be set when
-        * they are mapped */ 
+        * they are mapped */
        window->priv->side_panel_size = origin->priv->side_panel_size;
        window->priv->bottom_panel_size = origin->priv->bottom_panel_size;
 
@@ -2253,7 +2253,7 @@ bracket_matched_cb (GtkSourceBuffer           *buffer,
 }
 
 static void
-update_cursor_position_statusbar (GtkTextBuffer *buffer, 
+update_cursor_position_statusbar (GtkTextBuffer *buffer,
                                  GeditWindow   *window)
 {
        gint row, col;
@@ -2261,16 +2261,16 @@ update_cursor_position_statusbar (GtkTextBuffer *buffer,
        GeditView *view;
 
        gedit_debug (DEBUG_WINDOW);
-  
+
        if (buffer != GTK_TEXT_BUFFER (gedit_window_get_active_document (window)))
                return;
-               
+
        view = gedit_window_get_active_view (window);
-       
+
        gtk_text_buffer_get_iter_at_mark (buffer,
                                          &iter,
                                          gtk_text_buffer_get_insert (buffer));
-       
+
        row = gtk_text_iter_get_line (&iter);
        col = gtk_source_view_get_visual_column (GTK_SOURCE_VIEW (view), &iter);
 
@@ -2281,12 +2281,12 @@ update_cursor_position_statusbar (GtkTextBuffer *buffer,
 }
 
 static void
-update_overwrite_mode_statusbar (GtkTextView *view, 
+update_overwrite_mode_statusbar (GtkTextView *view,
                                 GeditWindow *window)
 {
        if (view != GTK_TEXT_VIEW (gedit_window_get_active_view (window)))
                return;
-               
+
        /* Note that we have to use !gtk_text_view_get_overwrite since we
           are in the in the signal handler of "toggle overwrite" that is
           G_SIGNAL_RUN_LAST
@@ -2298,7 +2298,7 @@ update_overwrite_mode_statusbar (GtkTextView *view,
 
 #define MAX_TITLE_LENGTH 100
 
-static void 
+static void
 set_title (GeditWindow *window)
 {
        GeditTab *tab;
@@ -2355,7 +2355,7 @@ set_title (GeditWindow *window)
                         * we have a title long 99 + 20, but I think it's a rare enough
                         * case to be acceptable. It's justa darn title afterall :)
                         */
-                       dirname = gedit_utils_str_middle_truncate (str, 
+                       dirname = gedit_utils_str_middle_truncate (str,
                                                                   MAX (20, MAX_TITLE_LENGTH - len));
                        g_free (str);
                }
@@ -2364,40 +2364,40 @@ set_title (GeditWindow *window)
        if (gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc)))
        {
                gchar *tmp_name;
-               
+
                tmp_name = g_strdup_printf ("*%s", name);
                g_free (name);
-               
+
                name = tmp_name;
-       }               
+       }
 
-       if (gedit_document_get_readonly (doc)) 
+       if (gedit_document_get_readonly (doc))
        {
                if (dirname != NULL)
                {
-                       title = g_strdup_printf ("%s [%s] (%s) - gedit", 
-                                                name, 
-                                                _("Read-Only"), 
+                       title = g_strdup_printf ("%s [%s] (%s) - gedit",
+                                                name,
+                                                _("Read-Only"),
                                                 dirname);
                }
                else
                {
-                       title = g_strdup_printf ("%s [%s] - gedit", 
-                                                name, 
+                       title = g_strdup_printf ("%s [%s] - gedit",
+                                                name,
                                                 _("Read-Only"));
                }
-       } 
-       else 
+       }
+       else
        {
                if (dirname != NULL)
                {
-                       title = g_strdup_printf ("%s (%s) - gedit", 
-                                                name, 
+                       title = g_strdup_printf ("%s (%s) - gedit",
+                                                name,
                                                 dirname);
                }
                else
                {
-                       title = g_strdup_printf ("%s - gedit", 
+                       title = g_strdup_printf ("%s - gedit",
                                                 name);
                }
        }
@@ -2417,15 +2417,15 @@ static void
 set_tab_width_item_blocked (GeditWindow *window,
                            GtkMenuItem *item)
 {
-       g_signal_handlers_block_by_func (window->priv->tab_width_combo, 
-                                        tab_width_combo_changed, 
+       g_signal_handlers_block_by_func (window->priv->tab_width_combo,
+                                        tab_width_combo_changed,
                                         window);
-       
+
        gedit_status_combo_box_set_item (GEDIT_STATUS_COMBO_BOX (window->priv->tab_width_combo),
                                         item);
-       
-       g_signal_handlers_unblock_by_func (window->priv->tab_width_combo, 
-                                          tab_width_combo_changed, 
+
+       g_signal_handlers_unblock_by_func (window->priv->tab_width_combo,
+                                          tab_width_combo_changed,
                                           window);
 }
 
@@ -2440,12 +2440,12 @@ spaces_instead_of_tabs_changed (GObject     *object,
        GList *children = gedit_status_combo_box_get_items (
                        GEDIT_STATUS_COMBO_BOX (window->priv->tab_width_combo));
        GtkCheckMenuItem *item;
-       
+
        item = GTK_CHECK_MENU_ITEM (g_list_last (children)->data);
-       
+
        gtk_check_menu_item_set_active (item, active);
-       
-       g_list_free (children); 
+
+       g_list_free (children);
 }
 
 static void
@@ -2462,32 +2462,32 @@ tab_width_changed (GObject     *object,
        items = gedit_status_combo_box_get_items (combo);
 
        new_tab_width = gtk_source_view_get_tab_width (GTK_SOURCE_VIEW (object));
-       
+
        for (item = items; item; item = item->next)
        {
                guint tab_width = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item->data), TAB_WIDTH_DATA));
-               
+
                if (tab_width == new_tab_width)
                {
                        set_tab_width_item_blocked (window, GTK_MENU_ITEM (item->data));
                        found = TRUE;
                }
-               
+
                if (GTK_IS_SEPARATOR_MENU_ITEM (item->next->data))
                {
                        if (!found)
                        {
                                /* Set for the last item the custom thing */
                                gchar *text;
-                       
+
                                text = g_strdup_printf ("%u", new_tab_width);
-                               gedit_status_combo_box_set_item_text (combo, 
+                               gedit_status_combo_box_set_item_text (combo,
                                                                      GTK_MENU_ITEM (item->data),
                                                                      text);
 
                                gtk_label_set_text (GTK_LABEL (gtk_bin_get_child (GTK_BIN (item->data))),
                                                    text);
-                       
+
                                set_tab_width_item_blocked (window, GTK_MENU_ITEM (item->data));
                                gtk_widget_show (GTK_WIDGET (item->data));
                        }
@@ -2495,11 +2495,11 @@ tab_width_changed (GObject     *object,
                        {
                                gtk_widget_hide (GTK_WIDGET (item->data));
                        }
-                       
+
                        break;
                }
        }
-       
+
        g_list_free (items);
 }
 
@@ -2513,33 +2513,33 @@ language_changed (GObject     *object,
        GeditStatusComboBox *combo = GEDIT_STATUS_COMBO_BOX (window->priv->language_combo);
        GtkSourceLanguage *new_language;
        const gchar *new_id;
-       
+
        items = gedit_status_combo_box_get_items (combo);
 
        new_language = gtk_source_buffer_get_language (GTK_SOURCE_BUFFER (object));
-       
+
        if (new_language)
                new_id = gtk_source_language_get_id (new_language);
        else
                new_id = NULL;
-       
+
        for (item = items; item; item = item->next)
        {
                GtkSourceLanguage *lang = g_object_get_data (G_OBJECT (item->data), LANGUAGE_DATA);
-               
-               if ((new_id == NULL && lang == NULL) || 
+
+               if ((new_id == NULL && lang == NULL) ||
                    (new_id != NULL && lang != NULL && strcmp (gtk_source_language_get_id (lang),
                                                               new_id) == 0))
                {
-                       g_signal_handlers_block_by_func (window->priv->language_combo, 
-                                                        language_combo_changed, 
+                       g_signal_handlers_block_by_func (window->priv->language_combo,
+                                                        language_combo_changed,
                                                         window);
-                       
+
                        gedit_status_combo_box_set_item (GEDIT_STATUS_COMBO_BOX 
(window->priv->language_combo),
                                                         GTK_MENU_ITEM (item->data));
 
-                       g_signal_handlers_unblock_by_func (window->priv->language_combo, 
-                                                          language_combo_changed, 
+                       g_signal_handlers_unblock_by_func (window->priv->language_combo,
+                                                          language_combo_changed,
                                                           window);
                }
        }
@@ -2560,15 +2560,15 @@ update_statusbar (GeditWindow *window,
                {
                        g_signal_handler_disconnect (old_view,
                                                     window->priv->tab_width_id);
-               
+
                        window->priv->tab_width_id = 0;
                }
-               
+
                if (window->priv->spaces_instead_of_tabs_id)
                {
                        g_signal_handler_disconnect (old_view,
                                                     window->priv->spaces_instead_of_tabs_id);
-               
+
                        window->priv->spaces_instead_of_tabs_id = 0;
                }
 
@@ -2643,9 +2643,9 @@ tab_switched (GeditMultiNotebook *mnb,
        /* update the syntax menu */
        update_languages_menu (window);
 
-       g_signal_emit (G_OBJECT (window), 
-                      signals[ACTIVE_TAB_CHANGED], 
-                      0, 
+       g_signal_emit (G_OBJECT (window),
+                      signals[ACTIVE_TAB_CHANGED],
+                      0,
                       new_tab);
 }
 
@@ -2669,13 +2669,13 @@ set_sensitivity_according_to_window_state (GeditWindow *window)
 
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "FileCloseAll");
-       gtk_action_set_sensitive (action, 
+       gtk_action_set_sensitive (action,
                                  !(window->priv->state & GEDIT_WINDOW_STATE_SAVING) &&
                                  !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING));
 
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "FileSaveAll");
-       gtk_action_set_sensitive (action, 
+       gtk_action_set_sensitive (action,
                                  !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING) &&
                                  !(lockdown & GEDIT_LOCKDOWN_SAVE_TO_DISK));
 
@@ -2736,35 +2736,35 @@ _gedit_window_set_lockdown (GeditWindow       *window,
 
        action = gtk_action_group_get_action (window->priv->action_group,
                                              "FileSaveAll");
-       gtk_action_set_sensitive (action, 
+       gtk_action_set_sensitive (action,
                                  !(window->priv->state & GEDIT_WINDOW_STATE_PRINTING) &&
                                  !(lockdown & GEDIT_LOCKDOWN_SAVE_TO_DISK));
 }
 
 static void
-analyze_tab_state (GeditTab    *tab, 
+analyze_tab_state (GeditTab    *tab,
                   GeditWindow *window)
 {
        GeditTabState ts;
-       
+
        ts = gedit_tab_get_state (tab);
-       
+
        switch (ts)
        {
                case GEDIT_TAB_STATE_LOADING:
                case GEDIT_TAB_STATE_REVERTING:
                        window->priv->state |= GEDIT_WINDOW_STATE_LOADING;
                        break;
-               
+
                case GEDIT_TAB_STATE_SAVING:
                        window->priv->state |= GEDIT_WINDOW_STATE_SAVING;
                        break;
-                       
+
                case GEDIT_TAB_STATE_PRINTING:
                case GEDIT_TAB_STATE_PRINT_PREVIEWING:
                        window->priv->state |= GEDIT_WINDOW_STATE_PRINTING;
                        break;
-       
+
                case GEDIT_TAB_STATE_LOADING_ERROR:
                case GEDIT_TAB_STATE_REVERTING_ERROR:
                case GEDIT_TAB_STATE_SAVING_ERROR:
@@ -2773,7 +2773,7 @@ analyze_tab_state (GeditTab    *tab,
                        ++window->priv->num_tabs_with_error;
                default:
                        /* NOP */
-                       break;          
+                       break;
        }
 }
 
@@ -2782,12 +2782,12 @@ update_window_state (GeditWindow *window)
 {
        GeditWindowState old_ws;
        gint old_num_of_errors;
-       
+
        gedit_debug_message (DEBUG_WINDOW, "Old state: %x", window->priv->state);
-       
+
        old_ws = window->priv->state;
        old_num_of_errors = window->priv->num_tabs_with_error;
-       
+
        window->priv->state = 0;
        window->priv->num_tabs_with_error = 0;
 
@@ -2795,8 +2795,8 @@ update_window_state (GeditWindow *window)
                                          (GtkCallback)analyze_tab_state,
                                          window);
 
-       gedit_debug_message (DEBUG_WINDOW, "New state: %x", window->priv->state);               
-               
+       gedit_debug_message (DEBUG_WINDOW, "New state: %x", window->priv->state);
+
        if (old_ws != window->priv->state)
        {
                set_sensitivity_according_to_window_state (window);
@@ -2804,14 +2804,14 @@ update_window_state (GeditWindow *window)
                gedit_statusbar_set_window_state (GEDIT_STATUSBAR (window->priv->statusbar),
                                                  window->priv->state,
                                                  window->priv->num_tabs_with_error);
-                                                 
+
                g_object_notify (G_OBJECT (window), "state");
        }
        else if (old_num_of_errors != window->priv->num_tabs_with_error)
        {
                gedit_statusbar_set_window_state (GEDIT_STATUSBAR (window->priv->statusbar),
                                                  window->priv->state,
-                                                 window->priv->num_tabs_with_error);   
+                                                 window->priv->num_tabs_with_error);
        }
 }
 
@@ -2861,9 +2861,9 @@ sync_state (GeditTab    *tab,
            GeditWindow *window)
 {
        gedit_debug (DEBUG_WINDOW);
-       
+
        update_window_state (window);
-       
+
        if (tab != gedit_window_get_active_tab (window))
                return;
 
@@ -2896,7 +2896,7 @@ sync_name (GeditTab    *tab,
        }
 
        /* sync the item in the documents list menu */
-       
+
        active_notebook = gedit_multi_notebook_get_active_notebook (window->priv->multi_notebook);
        page_num = gtk_notebook_page_num (GTK_NOTEBOOK (active_notebook),
                                          GTK_WIDGET (tab));
@@ -2958,7 +2958,7 @@ get_drop_window (GtkWidget *widget)
 
        target_window = gtk_widget_get_toplevel (widget);
        g_return_val_if_fail (GEDIT_IS_WINDOW (target_window), NULL);
-       
+
        return GEDIT_WINDOW (target_window);
 }
 
@@ -2972,7 +2972,7 @@ load_uris_from_drop (GeditWindow  *window,
 
        if (uri_list == NULL)
                return;
-       
+
        for (i = 0; uri_list[i] != NULL; ++i)
        {
                locations = g_slist_prepend (locations, g_file_new_for_uri (uri_list[i]));
@@ -3056,16 +3056,16 @@ run_fullscreen_animation (gpointer data)
        GdkScreen *screen;
        GdkRectangle fs_rect;
        gint x, y;
-       
+
        screen = gtk_window_get_screen (GTK_WINDOW (window));
        gdk_screen_get_monitor_geometry (screen,
                                         gdk_screen_get_monitor_at_window (screen,
                                                                           gtk_widget_get_window (GTK_WIDGET 
(window))),
                                         &fs_rect);
-                                        
+
        gtk_window_get_position (GTK_WINDOW (window->priv->fullscreen_controls),
                                 &x, &y);
-       
+
        if (window->priv->fullscreen_animation_enter)
        {
                if (y == fs_rect.y)
@@ -3083,10 +3083,10 @@ run_fullscreen_animation (gpointer data)
        else
        {
                gint w, h;
-       
+
                gtk_window_get_size (GTK_WINDOW (window->priv->fullscreen_controls),
                                     &w, &h);
-       
+
                if (y == fs_rect.y - h + 1)
                {
                        window->priv->fullscreen_animation_timeout_id = 0;
@@ -3196,21 +3196,21 @@ fullscreen_controls_build (GeditWindow *window)
 
        if (priv->fullscreen_controls != NULL)
                return;
-       
+
        priv->fullscreen_controls = gtk_window_new (GTK_WINDOW_POPUP);
 
        gtk_window_set_transient_for (GTK_WINDOW (priv->fullscreen_controls),
                                      GTK_WINDOW (&window->window));
-       
+
        /* popup toolbar */
        toolbar = gtk_ui_manager_get_widget (priv->manager, "/FullscreenToolBar");
        gtk_container_add (GTK_CONTAINER (priv->fullscreen_controls),
                           toolbar);
-       
+
        action = gtk_action_group_get_action (priv->always_sensitive_action_group,
                                              "LeaveFullscreen");
        g_object_set (action, "is-important", TRUE, NULL);
-       
+
        setup_toolbar_open_button (window, toolbar);
 
        gtk_container_foreach (GTK_CONTAINER (toolbar),
@@ -3517,10 +3517,10 @@ on_tab_removed (GeditMultiNotebook *multi,
        doc = gedit_tab_get_document (tab);
 
        g_signal_handlers_disconnect_by_func (tab,
-                                             G_CALLBACK (sync_name), 
+                                             G_CALLBACK (sync_name),
                                              window);
        g_signal_handlers_disconnect_by_func (tab,
-                                             G_CALLBACK (sync_state), 
+                                             G_CALLBACK (sync_state),
                                              window);
        g_signal_handlers_disconnect_by_func (tab,
                                              G_CALLBACK (sync_can_close),
@@ -3534,13 +3534,13 @@ on_tab_removed (GeditMultiNotebook *multi,
        g_signal_handlers_disconnect_by_func (doc,
                                              G_CALLBACK (update_cursor_position_statusbar),
                                              window);
-       g_signal_handlers_disconnect_by_func (doc, 
+       g_signal_handlers_disconnect_by_func (doc,
                                              G_CALLBACK (can_search_again),
                                              window);
-       g_signal_handlers_disconnect_by_func (doc, 
+       g_signal_handlers_disconnect_by_func (doc,
                                              G_CALLBACK (can_undo),
                                              window);
-       g_signal_handlers_disconnect_by_func (doc, 
+       g_signal_handlers_disconnect_by_func (doc,
                                              G_CALLBACK (can_redo),
                                              window);
        g_signal_handlers_disconnect_by_func (doc,
@@ -3552,10 +3552,10 @@ on_tab_removed (GeditMultiNotebook *multi,
        g_signal_handlers_disconnect_by_func (doc,
                                              G_CALLBACK (readonly_changed),
                                              window);
-       g_signal_handlers_disconnect_by_func (view, 
+       g_signal_handlers_disconnect_by_func (view,
                                              G_CALLBACK (update_overwrite_mode_statusbar),
                                              window);
-       g_signal_handlers_disconnect_by_func (view, 
+       g_signal_handlers_disconnect_by_func (view,
                                              G_CALLBACK (editable_changed),
                                              window);
 
@@ -3564,13 +3564,13 @@ on_tab_removed (GeditMultiNotebook *multi,
                g_signal_handler_disconnect (view, window->priv->tab_width_id);
                window->priv->tab_width_id = 0;
        }
-       
+
        if (window->priv->spaces_instead_of_tabs_id && tab == gedit_multi_notebook_get_active_tab (multi))
        {
                g_signal_handler_disconnect (view, window->priv->spaces_instead_of_tabs_id);
                window->priv->spaces_instead_of_tabs_id = 0;
        }
-       
+
        if (window->priv->language_changed_id && tab == gedit_multi_notebook_get_active_tab (multi))
        {
                g_signal_handler_disconnect (doc, window->priv->language_changed_id);
@@ -3587,7 +3587,7 @@ on_tab_removed (GeditMultiNotebook *multi,
                                GEDIT_STATUSBAR (window->priv->statusbar),
                                -1,
                                -1);
-                               
+
                gedit_statusbar_clear_overwrite (
                                GEDIT_STATUSBAR (window->priv->statusbar));
 
@@ -3657,7 +3657,7 @@ on_notebook_create_window (GeditMultiNotebook *mnb,
        return GTK_NOTEBOOK (new_notebook);
 }
 
-static void 
+static void
 on_tab_close_request (GeditMultiNotebook *multi,
                      GeditNotebook      *notebook,
                      GeditTab           *tab,
@@ -3810,9 +3810,9 @@ create_side_panel (GeditWindow *window)
 
        window->priv->side_panel = gedit_panel_new (GTK_ORIENTATION_VERTICAL);
 
-       gtk_paned_pack1 (GTK_PANED (window->priv->hpaned), 
-                        window->priv->side_panel, 
-                        FALSE, 
+       gtk_paned_pack1 (GTK_PANED (window->priv->hpaned),
+                        window->priv->side_panel,
+                        FALSE,
                         FALSE);
 
        g_signal_connect_after (window->priv->side_panel,
@@ -3895,14 +3895,14 @@ bottom_panel_item_added (GeditPanel  *panel,
 }
 
 static void
-create_bottom_panel (GeditWindow *window) 
+create_bottom_panel (GeditWindow *window)
 {
        gedit_debug (DEBUG_WINDOW);
 
        window->priv->bottom_panel = gedit_panel_new (GTK_ORIENTATION_HORIZONTAL);
 
-       gtk_paned_pack2 (GTK_PANED (window->priv->vpaned), 
-                        window->priv->bottom_panel, 
+       gtk_paned_pack2 (GTK_PANED (window->priv->vpaned),
+                        window->priv->bottom_panel,
                         FALSE,
                         FALSE);
 
@@ -4085,18 +4085,18 @@ gedit_window_init (GeditWindow *window)
        create_statusbar (window, main_box);
 
        /* Add the main area */
-       gedit_debug_message (DEBUG_WINDOW, "Add main area");            
+       gedit_debug_message (DEBUG_WINDOW, "Add main area");
        window->priv->hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
-       gtk_box_pack_start (GTK_BOX (main_box), 
-                           window->priv->hpaned, 
-                           TRUE, 
-                           TRUE, 
+       gtk_box_pack_start (GTK_BOX (main_box),
+                           window->priv->hpaned,
+                           TRUE,
+                           TRUE,
                            0);
 
        window->priv->vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
-       gtk_paned_pack2 (GTK_PANED (window->priv->hpaned), 
-                        window->priv->vpaned, 
-                        TRUE, 
+       gtk_paned_pack2 (GTK_PANED (window->priv->hpaned),
+                        window->priv->vpaned,
+                        TRUE,
                         FALSE);
 
        gedit_debug_message (DEBUG_WINDOW, "Create gedit notebook group");
@@ -4186,21 +4186,21 @@ gedit_window_init (GeditWindow *window)
 
        /* Add uri targets */
        tl = gtk_drag_dest_get_target_list (GTK_WIDGET (window));
-       
+
        if (tl == NULL)
        {
                tl = gtk_target_list_new (NULL, 0);
                gtk_drag_dest_set_target_list (GTK_WIDGET (window), tl);
                gtk_target_list_unref (tl);
        }
-       
+
        gtk_target_list_add_uri_targets (tl, TARGET_URI_LIST);
 
        /* connect instead of override, so that we can
         * share the cb code with the view */
        g_signal_connect (window,
                          "drag_data_received",
-                         G_CALLBACK (drag_data_received_cb), 
+                         G_CALLBACK (drag_data_received_cb),
                          NULL);
 
        /* we can get the clipboard only after the widget
@@ -4221,7 +4221,7 @@ gedit_window_init (GeditWindow *window)
                          NULL);
 
        gedit_debug_message (DEBUG_WINDOW, "Update plugins ui");
-       
+
        window->priv->extensions = peas_extension_set_new (PEAS_ENGINE (gedit_plugins_engine_get_default ()),
                                                           GEDIT_TYPE_WINDOW_ACTIVATABLE,
                                                           "window", window,
@@ -4280,7 +4280,7 @@ gedit_window_get_active_view (GeditWindow *window)
  * @window: a #GeditWindow
  *
  * Gets the active #GeditDocument.
- * 
+ *
  * Returns: (transfer none): the active #GeditDocument
  */
 GeditDocument *
@@ -4380,7 +4380,7 @@ gedit_window_create_tab (GeditWindow *window,
  *
  * Creates a new #GeditTab loading the document specified by @uri.
  * In case @jump_to is %TRUE the #GeditNotebook swithes to that new #GeditTab.
- * Whether @create is %TRUE, creates a new empty document if location does 
+ * Whether @create is %TRUE, creates a new empty document if location does
  * not refer to an existing file
  *
  * Returns: (transfer none): a new #GeditTab
@@ -4460,7 +4460,7 @@ GeditTab *
 gedit_window_get_active_tab (GeditWindow *window)
 {
        g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL);
-       
+
        return (window->priv->multi_notebook == NULL) ? NULL :
                        gedit_multi_notebook_get_active_tab (window->priv->multi_notebook);
 }
@@ -4498,7 +4498,7 @@ gedit_window_get_documents (GeditWindow *window)
                                          &res);
 
        res = g_list_reverse (res);
-       
+
        return res;
 }
 
@@ -4534,7 +4534,7 @@ gedit_window_get_views (GeditWindow *window)
                                          &res);
 
        res = g_list_reverse (res);
-       
+
        return res;
 }
 
@@ -4628,7 +4628,7 @@ _gedit_window_move_tab_to_new_window (GeditWindow *window,
                                 -1);
 
        gtk_widget_show (GTK_WIDGET (new_window));
-       
+
        return new_window;
 }
 
@@ -4661,7 +4661,7 @@ GtkWindowGroup *
 gedit_window_get_group (GeditWindow *window)
 {
        g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL);
-       
+
        return window->priv->window_group;
 }
 
@@ -4669,7 +4669,7 @@ gboolean
 _gedit_window_is_removing_tabs (GeditWindow *window)
 {
        g_return_val_if_fail (GEDIT_IS_WINDOW (window), FALSE);
-       
+
        return window->priv->removing_tabs;
 }
 
@@ -4825,7 +4825,7 @@ _gedit_window_get_all_tabs (GeditWindow *window)
 }
 
 static void
-hide_notebook_tabs_on_fullscreen (GtkNotebook  *notebook, 
+hide_notebook_tabs_on_fullscreen (GtkNotebook  *notebook,
                                  GParamSpec    *pspec,
                                  GeditWindow   *window)
 {
@@ -4856,14 +4856,14 @@ _gedit_window_fullscreen (GeditWindow *window)
        gedit_multi_notebook_foreach_notebook (window->priv->multi_notebook,
                                               (GtkCallback)hide_notebook_tabs,
                                               window);
-       
+
        gtk_widget_hide (window->priv->menubar);
-       
+
        g_signal_handlers_block_by_func (window->priv->toolbar,
                                         toolbar_visibility_changed,
                                         window);
        gtk_widget_hide (window->priv->toolbar);
-       
+
        g_signal_handlers_block_by_func (window->priv->statusbar,
                                         statusbar_visibility_changed,
                                         window);
@@ -4902,7 +4902,7 @@ _gedit_window_unfullscreen (GeditWindow *window)
                                               window);
 
        gtk_widget_show (window->priv->menubar);
-       
+
        action = gtk_action_group_get_action (window->priv->always_sensitive_action_group,
                                              "ViewToolbar");
        visible = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
@@ -4911,7 +4911,7 @@ _gedit_window_unfullscreen (GeditWindow *window)
        g_signal_handlers_unblock_by_func (window->priv->toolbar,
                                           toolbar_visibility_changed,
                                           window);
-       
+
        action = gtk_action_group_get_action (window->priv->always_sensitive_action_group,
                                              "ViewStatusbar");
        visible = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
@@ -4953,7 +4953,7 @@ gedit_window_get_tab_from_location (GeditWindow *window,
        g_return_val_if_fail (G_IS_FILE (location), NULL);
 
        tabs = gedit_multi_notebook_get_all_tabs (window->priv->multi_notebook);
-       
+
        for (l = tabs; l != NULL; l = g_list_next (l))
        {
                GeditDocument *d;
@@ -4978,9 +4978,9 @@ gedit_window_get_tab_from_location (GeditWindow *window,
                        }
                }
        }
-       
+
        g_list_free (tabs);
-       
+
        return ret;
 }
 
@@ -4997,7 +4997,7 @@ GeditMessageBus *
 gedit_window_get_message_bus (GeditWindow *window)
 {
        g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL);
-       
+
        return window->priv->message_bus;
 }
 
diff --git a/gedit/gedit-window.h b/gedit/gedit-window.h
index 9ae0883..391ce9f 100644
--- a/gedit/gedit-window.h
+++ b/gedit/gedit-window.h
@@ -2,7 +2,7 @@
  * gedit-window.h
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
@@ -125,7 +125,7 @@ GeditDocument       *gedit_window_get_active_document       (GeditWindow         *window);
 /* Returns a newly allocated list with all the documents in the window */
 GList          *gedit_window_get_documents             (GeditWindow         *window);
 
-/* Returns a newly allocated list with all the documents that need to be 
+/* Returns a newly allocated list with all the documents that need to be
    saved before closing the window */
 GList          *gedit_window_get_unsaved_documents     (GeditWindow         *window);
 
diff --git a/gedit/gedit.c b/gedit/gedit.c
index 1f5e0de..62efe6f 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -2,7 +2,7 @@
  * gedit.c
  * This file is part of gedit
  *
- * Copyright (C) 2005 - Paolo Maggi 
+ * Copyright (C) 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
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2005. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2005. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  *
  * $Id$
  */
diff --git a/gedit/gedittextregion.c b/gedit/gedittextregion.c
index f1d5701..52124de 100644
--- a/gedit/gedittextregion.c
+++ b/gedit/gedittextregion.c
@@ -1,4 +1,4 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
  *
  * gedittextregion.h - GtkTextMark based region utility functions
  *
@@ -19,7 +19,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.  
+ * Boston, MA 02111-1307, USA.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -58,7 +58,7 @@ typedef struct _GeditTextRegionIteratorReal GeditTextRegionIteratorReal;
 struct _GeditTextRegionIteratorReal {
        GeditTextRegion *region;
        guint32        region_time_stamp;
-       
+
        GList         *subregions;
 };
 
@@ -71,7 +71,7 @@ struct _GeditTextRegionIteratorReal {
    iter.  If left_side is TRUE, return the subregion which contains
    the text iter or which is the leftmost; else return the rightmost
    subregion */
-static GList * 
+static GList *
 find_nearest_subregion (GeditTextRegion     *region,
                        const GtkTextIter *iter,
                        GList             *begin,
@@ -79,17 +79,17 @@ find_nearest_subregion (GeditTextRegion     *region,
                        gboolean           include_edges)
 {
        GList *l, *retval;
-       
+
        g_return_val_if_fail (region != NULL && iter != NULL, NULL);
 
        if (!begin)
                begin = region->subregions;
-       
+
        if (begin)
                retval = begin->prev;
        else
                retval = NULL;
-       
+
        for (l = begin; l; l = l->next) {
                GtkTextIter sr_iter;
                Subregion *sr = l->data;
@@ -125,16 +125,16 @@ gedit_text_region_new (GtkTextBuffer *buffer)
        GeditTextRegion *region;
 
        g_return_val_if_fail (buffer != NULL, NULL);
-       
+
        region = g_new (GeditTextRegion, 1);
        region->buffer = buffer;
        region->subregions = NULL;
        region->time_stamp = 0;
-       
+
        return region;
 }
 
-void 
+void
 gedit_text_region_destroy (GeditTextRegion *region, gboolean delete_marks)
 {
        g_return_if_fail (region != NULL);
@@ -151,7 +151,7 @@ gedit_text_region_destroy (GeditTextRegion *region, gboolean delete_marks)
        }
        region->buffer = NULL;
        region->time_stamp = 0;
-       
+
        g_free (region);
 }
 
@@ -159,7 +159,7 @@ GtkTextBuffer *
 gedit_text_region_get_buffer (GeditTextRegion *region)
 {
        g_return_val_if_fail (region != NULL, NULL);
-       
+
        return region->buffer;
 }
 
@@ -168,7 +168,7 @@ gedit_text_region_clear_zero_length_subregions (GeditTextRegion *region)
 {
        GtkTextIter start, end;
        GList *node;
-       
+
        g_return_if_fail (region != NULL);
 
        for (node = region->subregions; node; ) {
@@ -185,26 +185,26 @@ gedit_text_region_clear_zero_length_subregions (GeditTextRegion *region)
                                node = g_list_delete_link (node, node);
 
                        ++region->time_stamp;
-                       
+
                } else {
                        node = node->next;
                }
        }
 }
 
-void 
+void
 gedit_text_region_add (GeditTextRegion     *region,
                     const GtkTextIter *_start,
                     const GtkTextIter *_end)
 {
        GList *start_node, *end_node;
        GtkTextIter start, end;
-       
+
        g_return_if_fail (region != NULL && _start != NULL && _end != NULL);
-       
+
        start = *_start;
        end = *_end;
-       
+
        DEBUG (g_print ("---\n"));
        DEBUG (gedit_text_region_debug_print (region));
        DEBUG (g_message ("region_add (%d, %d)",
@@ -212,7 +212,7 @@ gedit_text_region_add (GeditTextRegion     *region,
                          gtk_text_iter_get_offset (&end)));
 
        gtk_text_iter_order (&start, &end);
-       
+
        /* don't add zero-length regions */
        if (gtk_text_iter_equal (&start, &end))
                return;
@@ -226,11 +226,11 @@ gedit_text_region_add (GeditTextRegion     *region,
                Subregion *sr = g_new0 (Subregion, 1);
                sr->start = gtk_text_buffer_create_mark (region->buffer, NULL, &start, TRUE);
                sr->end = gtk_text_buffer_create_mark (region->buffer, NULL, &end, FALSE);
-               
+
                if (start_node == NULL) {
                        /* append the new region */
                        region->subregions = g_list_append (region->subregions, sr);
-                       
+
                } else if (end_node == NULL) {
                        /* prepend the new region */
                        region->subregions = g_list_prepend (region->subregions, sr);
@@ -248,7 +248,7 @@ gedit_text_region_add (GeditTextRegion     *region,
                        /* we need to merge some subregions */
                        GList *l = start_node->next;
                        Subregion *q;
-                       
+
                        gtk_text_buffer_delete_mark (region->buffer, sr->end);
                        while (l != end_node) {
                                q = l->data;
@@ -277,7 +277,7 @@ gedit_text_region_add (GeditTextRegion     *region,
        DEBUG (gedit_text_region_debug_print (region));
 }
 
-void 
+void
 gedit_text_region_subtract (GeditTextRegion     *region,
                          const GtkTextIter *_start,
                          const GtkTextIter *_end)
@@ -290,18 +290,18 @@ gedit_text_region_subtract (GeditTextRegion     *region,
        GtkTextIter start, end;
 
        g_return_if_fail (region != NULL && _start != NULL && _end != NULL);
-       
+
        start = *_start;
        end = *_end;
-       
+
        DEBUG (g_print ("---\n"));
        DEBUG (gedit_text_region_debug_print (region));
        DEBUG (g_message ("region_substract (%d, %d)",
                          gtk_text_iter_get_offset (&start),
                          gtk_text_iter_get_offset (&end)));
-       
+
        gtk_text_iter_order (&start, &end);
-       
+
        /* find bounding subregions */
        start_node = find_nearest_subregion (region, &start, NULL, FALSE, FALSE);
        end_node = find_nearest_subregion (region, &end, start_node, TRUE, FALSE);
@@ -309,10 +309,10 @@ gedit_text_region_subtract (GeditTextRegion     *region,
        /* easy case first */
        if (start_node == NULL || end_node == NULL || end_node == start_node->prev)
                return;
-       
+
        /* deal with the start point */
        start_is_outside = end_is_outside = FALSE;
-       
+
        sr = start_node->data;
        gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_start_iter, sr->start);
        gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_end_iter, sr->end);
@@ -335,7 +335,7 @@ gedit_text_region_subtract (GeditTextRegion     *region,
 
                        /* no further processing needed */
                        DEBUG (g_message ("subregion splitted"));
-                       
+
                        return;
                } else {
                        /* the ending point is outside, so just move
@@ -346,17 +346,17 @@ gedit_text_region_subtract (GeditTextRegion     *region,
                /* the starting point is outside (and so to the left)
                    of the first subregion */
                DEBUG (g_message ("start is outside"));
-                       
+
                start_is_outside = TRUE;
        }
-       
+
        /* deal with the end point */
        if (start_node != end_node) {
                sr = end_node->data;
                gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_start_iter, sr->start);
                gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_end_iter, sr->end);
        }
-       
+
        if (gtk_text_iter_in_range (&end, &sr_start_iter, &sr_end_iter) &&
            !gtk_text_iter_equal (&end, &sr_end_iter)) {
                /* ending point is inside, move the start mark */
@@ -364,18 +364,18 @@ gedit_text_region_subtract (GeditTextRegion     *region,
        } else {
                end_is_outside = TRUE;
                DEBUG (g_message ("end is outside"));
-               
+
        }
-       
+
        /* finally remove any intermediate subregions */
        done = FALSE;
        node = start_node;
-       
+
        while (!done) {
                if (node == end_node)
                        /* we are done, exit in the next iteration */
                        done = TRUE;
-               
+
                if ((node == start_node && !start_is_outside) ||
                    (node == end_node && !end_is_outside)) {
                        /* skip starting or ending node */
@@ -402,7 +402,7 @@ gedit_text_region_subtract (GeditTextRegion     *region,
        DEBUG (gedit_text_region_debug_print (region));
 }
 
-gint 
+gint
 gedit_text_region_subregions (GeditTextRegion *region)
 {
        g_return_val_if_fail (region != NULL, 0);
@@ -410,14 +410,14 @@ gedit_text_region_subregions (GeditTextRegion *region)
        return g_list_length (region->subregions);
 }
 
-gboolean 
+gboolean
 gedit_text_region_nth_subregion (GeditTextRegion *region,
                               guint          subregion,
                               GtkTextIter   *start,
                               GtkTextIter   *end)
 {
        Subregion *sr;
-       
+
        g_return_val_if_fail (region != NULL, FALSE);
 
        sr = g_list_nth_data (region->subregions, subregion);
@@ -432,7 +432,7 @@ gedit_text_region_nth_subregion (GeditTextRegion *region,
        return TRUE;
 }
 
-GeditTextRegion * 
+GeditTextRegion *
 gedit_text_region_intersect (GeditTextRegion     *region,
                           const GtkTextIter *_start,
                           const GtkTextIter *_end)
@@ -443,14 +443,14 @@ gedit_text_region_intersect (GeditTextRegion     *region,
        gboolean done;
        GeditTextRegion *new_region;
        GtkTextIter start, end;
-       
+
        g_return_val_if_fail (region != NULL && _start != NULL && _end != NULL, NULL);
-       
+
        start = *_start;
        end = *_end;
-       
+
        gtk_text_iter_order (&start, &end);
-       
+
        /* find bounding subregions */
        start_node = find_nearest_subregion (region, &start, NULL, FALSE, FALSE);
        end_node = find_nearest_subregion (region, &end, start_node, TRUE, FALSE);
@@ -458,10 +458,10 @@ gedit_text_region_intersect (GeditTextRegion     *region,
        /* easy case first */
        if (start_node == NULL || end_node == NULL || end_node == start_node->prev)
                return NULL;
-       
+
        new_region = gedit_text_region_new (region->buffer);
        done = FALSE;
-       
+
        sr = start_node->data;
        gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_start_iter, sr->start);
        gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_end_iter, sr->end);
@@ -500,7 +500,7 @@ gedit_text_region_intersect (GeditTextRegion     *region,
                        gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_start_iter,
                                                          sr->start);
                        gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_end_iter, sr->end);
-                       
+
                        new_sr = g_new0 (Subregion, 1);
                        new_region->subregions = g_list_prepend (new_region->subregions, new_sr);
                        new_sr->start = gtk_text_buffer_create_mark (new_region->buffer, NULL,
@@ -515,10 +515,10 @@ gedit_text_region_intersect (GeditTextRegion     *region,
                sr = node->data;
                gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_start_iter, sr->start);
                gtk_text_buffer_get_iter_at_mark (region->buffer, &sr_end_iter, sr->end);
-               
+
                new_sr = g_new0 (Subregion, 1);
                new_region->subregions = g_list_prepend (new_region->subregions, new_sr);
-               
+
                new_sr->start = gtk_text_buffer_create_mark (new_region->buffer, NULL,
                                                             &sr_start_iter, TRUE);
 
@@ -534,7 +534,7 @@ gedit_text_region_intersect (GeditTextRegion     *region,
        return new_region;
 }
 
-static gboolean 
+static gboolean
 check_iterator (GeditTextRegionIteratorReal *real)
 {
        if ((real->region == NULL) ||
@@ -544,14 +544,14 @@ check_iterator (GeditTextRegionIteratorReal *real)
                          "is uninitialized, or the region "
                          "has been modified since the iterator "
                          "was created.");
-                         
+
                 return FALSE;
        }
 
        return TRUE;
 }
 
-void       
+void
 gedit_text_region_get_iterator (GeditTextRegion         *region,
                               GeditTextRegionIterator *iter,
                               guint                  start)
@@ -559,7 +559,7 @@ gedit_text_region_get_iterator (GeditTextRegion         *region,
        GeditTextRegionIteratorReal *real;
 
        g_return_if_fail (region != NULL);
-       g_return_if_fail (iter != NULL);        
+       g_return_if_fail (iter != NULL);
 
        real = (GeditTextRegionIteratorReal *)iter;
 
@@ -575,7 +575,7 @@ gedit_text_region_iterator_is_end (GeditTextRegionIterator *iter)
 {
        GeditTextRegionIteratorReal *real;
 
-       g_return_val_if_fail (iter != NULL, FALSE);     
+       g_return_val_if_fail (iter != NULL, FALSE);
 
        real = (GeditTextRegionIteratorReal *)iter;
        g_return_val_if_fail (check_iterator (real), FALSE);
@@ -588,7 +588,7 @@ gedit_text_region_iterator_next (GeditTextRegionIterator *iter)
 {
        GeditTextRegionIteratorReal *real;
 
-       g_return_val_if_fail (iter != NULL, FALSE);     
+       g_return_val_if_fail (iter != NULL, FALSE);
 
        real = (GeditTextRegionIteratorReal *)iter;
        g_return_val_if_fail (check_iterator (real), FALSE);
@@ -601,7 +601,7 @@ gedit_text_region_iterator_next (GeditTextRegionIterator *iter)
                return FALSE;
 }
 
-void       
+void
 gedit_text_region_iterator_get_subregion (GeditTextRegionIterator *iter,
                                        GtkTextIter           *start,
                                        GtkTextIter           *end)
@@ -624,11 +624,11 @@ gedit_text_region_iterator_get_subregion (GeditTextRegionIterator *iter,
                gtk_text_buffer_get_iter_at_mark (real->region->buffer, end, sr->end);
 }
 
-void 
+void
 gedit_text_region_debug_print (GeditTextRegion *region)
 {
        GList *l;
-       
+
        g_return_if_fail (region != NULL);
 
        g_print ("Subregions: ");
diff --git a/gedit/gedittextregion.h b/gedit/gedittextregion.h
index 3b39eab..0a405aa 100644
--- a/gedit/gedittextregion.h
+++ b/gedit/gedittextregion.h
@@ -1,4 +1,4 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
  *
  * gedittextregion.h - GtkTextMark based region utility functions
  *
@@ -19,7 +19,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.  
+ * Boston, MA 02111-1307, USA.
  */
 
 #ifndef __GEDIT_TEXT_REGION_H__
@@ -40,7 +40,7 @@ struct _GeditTextRegionIterator {
        /*< private >*/
        gpointer dummy1;
        guint32  dummy2;
-       gpointer dummy3;        
+       gpointer dummy3;
 };
 
 GeditTextRegion *gedit_text_region_new                          (GtkTextBuffer *buffer);
diff --git a/plugins/changecase/gedit-changecase-plugin.c b/plugins/changecase/gedit-changecase-plugin.c
index ac6e17a..4818ae0 100644
--- a/plugins/changecase/gedit-changecase-plugin.c
+++ b/plugins/changecase/gedit-changecase-plugin.c
@@ -1,13 +1,13 @@
 /*
  * gedit-changecase-plugin.c
- * 
+ *
  * Copyright (C) 2004-2010 - Paolo Borelli
  *
  * 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
@@ -380,7 +380,7 @@ gedit_changecase_plugin_activate (GeditWindowActivatable *activatable)
        manager = gedit_window_get_ui_manager (priv->window);
 
        priv->action_group = gtk_action_group_new ("GeditChangecasePluginActions");
-       gtk_action_group_set_translation_domain (priv->action_group, 
+       gtk_action_group_set_translation_domain (priv->action_group,
                                                 GETTEXT_PACKAGE);
        gtk_action_group_add_actions (priv->action_group,
                                      action_entries,
diff --git a/plugins/changecase/gedit-changecase-plugin.h b/plugins/changecase/gedit-changecase-plugin.h
index 771f4a0..aae3929 100644
--- a/plugins/changecase/gedit-changecase-plugin.h
+++ b/plugins/changecase/gedit-changecase-plugin.h
@@ -1,6 +1,6 @@
 /*
  * gedit-changecase-plugin.h
- * 
+ *
  * Copyright (C) 2004-2010 - Paolo Borelli
  *
  * This program is free software; you can redistribute it and/or modify
diff --git a/plugins/checkupdate/gedit-check-update-plugin.c b/plugins/checkupdate/gedit-check-update-plugin.c
index d915195..73bdf1b 100644
--- a/plugins/checkupdate/gedit-check-update-plugin.c
+++ b/plugins/checkupdate/gedit-check-update-plugin.c
@@ -646,9 +646,9 @@ gedit_check_update_plugin_class_init (GeditCheckUpdatePluginClass *klass)
        object_class->dispose = gedit_check_update_plugin_dispose;
        object_class->set_property = gedit_check_update_plugin_set_property;
        object_class->get_property = gedit_check_update_plugin_get_property;
-       
+
        g_object_class_override_property (object_class, PROP_WINDOW, "window");
-       
+
        g_type_class_add_private (object_class, sizeof (GeditCheckUpdatePluginPrivate));
 }
 
diff --git a/plugins/docinfo/gedit-docinfo-plugin.h b/plugins/docinfo/gedit-docinfo-plugin.h
index 311c38d..a4dcea7 100644
--- a/plugins/docinfo/gedit-docinfo-plugin.h
+++ b/plugins/docinfo/gedit-docinfo-plugin.h
@@ -1,7 +1,7 @@
 /*
  * gedit-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
diff --git a/plugins/filebrowser/gedit-file-browser-plugin.c b/plugins/filebrowser/gedit-file-browser-plugin.c
index 0b8714f..c30fb22 100644
--- a/plugins/filebrowser/gedit-file-browser-plugin.c
+++ b/plugins/filebrowser/gedit-file-browser-plugin.c
@@ -159,7 +159,7 @@ settings_try_new (const gchar *schema)
 static void
 gedit_file_browser_plugin_init (GeditFileBrowserPlugin *plugin)
 {
-       
+
 
        plugin->priv = GEDIT_FILE_BROWSER_PLUGIN_GET_PRIVATE (plugin);
 
diff --git a/plugins/modelines/gedit-modeline-plugin.c b/plugins/modelines/gedit-modeline-plugin.c
index 9b90b29..711b43f 100644
--- a/plugins/modelines/gedit-modeline-plugin.c
+++ b/plugins/modelines/gedit-modeline-plugin.c
@@ -1,14 +1,14 @@
 /*
  * gedit-modeline-plugin.c
  * Emacs, Kate and Vim-style modelines support for gedit.
- * 
+ *
  * Copyright (C) 2005-2010 - Steve Frécinaux <code istique net>
  *
  * 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
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
- 
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
diff --git a/plugins/modelines/gedit-modeline-plugin.h b/plugins/modelines/gedit-modeline-plugin.h
index fedb8ac..b8c90b3 100644
--- a/plugins/modelines/gedit-modeline-plugin.h
+++ b/plugins/modelines/gedit-modeline-plugin.h
@@ -1,7 +1,7 @@
 /*
  * gedit-modeline-plugin.h
  * Emacs, Kate and Vim-style modelines support for gedit.
- * 
+ *
  * Copyright (C) 2005-2007 - Steve Frécinaux <code istique net>
  *
  * This program is free software; you can redistribute it and/or modify
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index bc851f2..4dcd88e 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -64,7 +64,7 @@ typedef struct _ModelineOptions
        GtkWrapMode     wrap_mode;
        gboolean        display_right_margin;
        guint           right_margin_position;
-       
+
        ModelineSet     set;
 } ModelineOptions;
 
@@ -97,7 +97,7 @@ modeline_parser_shutdown ()
 
        if (kate_languages != NULL)
                g_hash_table_unref (kate_languages);
-       
+
        vim_languages = NULL;
        emacs_languages = NULL;
        kate_languages = NULL;
@@ -230,7 +230,7 @@ skip_whitespaces (gchar **s)
 }
 
 /* Parse vi(m) modelines.
- * Vi(m) modelines looks like this: 
+ * Vi(m) modelines looks like this:
  *   - first form:   [text]{white}{vi:|vim:|ex:}[white]{options}
  *   - second form:  [text]{white}{vi:|vim:|ex:}[white]se[t] {options}:[text]
  * They can happen on the three first or last lines.
@@ -295,7 +295,7 @@ parse_vim_modeline (gchar           *s,
                {
                        g_free (options->language_id);
                        options->language_id = get_language_id_vim (value->str);
-                       
+
                        options->set |= MODELINE_SET_LANGUAGE;
                }
                else if (strcmp (key->str, "et") == 0 ||
@@ -308,7 +308,7 @@ parse_vim_modeline (gchar           *s,
                         strcmp (key->str, "tabstop") == 0)
                {
                        intval = atoi (value->str);
-                       
+
                        if (intval)
                        {
                                options->tab_width = intval;
@@ -319,7 +319,7 @@ parse_vim_modeline (gchar           *s,
                         strcmp (key->str, "shiftwidth") == 0)
                {
                        intval = atoi (value->str);
-                       
+
                        if (intval)
                        {
                                options->indent_width = intval;
@@ -336,15 +336,15 @@ parse_vim_modeline (gchar           *s,
                         strcmp (key->str, "tw") == 0)
                {
                        intval = atoi (value->str);
-                       
+
                        if (intval)
                        {
                                options->right_margin_position = intval;
                                options->display_right_margin = TRUE;
-                               
+
                                options->set |= MODELINE_SET_SHOW_RIGHT_MARGIN |
                                                MODELINE_SET_RIGHT_MARGIN_POSITION;
-                               
+
                        }
                }
        }
@@ -413,13 +413,13 @@ parse_emacs_modeline (gchar           *s,
                {
                        g_free (options->language_id);
                        options->language_id = get_language_id_emacs (value->str);
-                       
+
                        options->set |= MODELINE_SET_LANGUAGE;
                }
                else if (strcmp (key->str, "tab-width") == 0)
                {
                        intval = atoi (value->str);
-                       
+
                        if (intval)
                        {
                                options->tab_width = intval;
@@ -429,7 +429,7 @@ parse_emacs_modeline (gchar           *s,
                else if (strcmp (key->str, "indent-offset") == 0)
                {
                        intval = atoi (value->str);
-                       
+
                        if (intval)
                        {
                                options->indent_width = intval;
@@ -440,14 +440,14 @@ parse_emacs_modeline (gchar           *s,
                {
                        intval = strcmp (value->str, "nil") == 0;
                        options->insert_spaces = intval;
-                       
+
                        options->set |= MODELINE_SET_INSERT_SPACES;
                }
                else if (strcmp (key->str, "autowrap") == 0)
                {
                        intval = strcmp (value->str, "nil") != 0;
                        options->wrap_mode = intval ? GTK_WRAP_WORD : GTK_WRAP_NONE;
-                       
+
                        options->set |= MODELINE_SET_WRAP_MODE;
                }
        }
@@ -511,13 +511,13 @@ parse_kate_modeline (gchar           *s,
                {
                        g_free (options->language_id);
                        options->language_id = get_language_id_kate (value->str);
-                       
+
                        options->set |= MODELINE_SET_LANGUAGE;
                }
                else if (strcmp (key->str, "tab-width") == 0)
                {
                        intval = atoi (value->str);
-                       
+
                        if (intval)
                        {
                                options->tab_width = intval;
@@ -546,17 +546,17 @@ parse_kate_modeline (gchar           *s,
 
                        options->wrap_mode = intval ? GTK_WRAP_WORD : GTK_WRAP_NONE;
 
-                       options->set |= MODELINE_SET_WRAP_MODE;                 
+                       options->set |= MODELINE_SET_WRAP_MODE;
                }
                else if (strcmp (key->str, "word-wrap-column") == 0)
                {
                        intval = atoi (value->str);
-                       
+
                        if (intval)
                        {
                                options->right_margin_position = intval;
                                options->display_right_margin = TRUE;
-                               
+
                                options->set |= MODELINE_SET_RIGHT_MARGIN_POSITION |
                                                MODELINE_SET_SHOW_RIGHT_MARGIN;
                        }
@@ -618,7 +618,7 @@ check_previous (GtkSourceView   *view,
                 ModelineSet      set)
 {
        GtkSourceBuffer *buffer = GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)));
-          
+
        /* Do not restore default when this is the first time */
        if (!previous)
                return FALSE;
@@ -655,7 +655,7 @@ check_previous (GtkSourceView   *view,
                case MODELINE_SET_LANGUAGE:
                {
                        GtkSourceLanguage *language = gtk_source_buffer_get_language (buffer);
-                       
+
                        return (language == NULL && previous->language_id == NULL) ||
                               (language != NULL && g_strcmp0 (gtk_source_language_get_id (language),
                                                               previous->language_id) == 0);
@@ -779,7 +779,7 @@ modeline_parser_apply_modeline (GtkSourceView *view)
                }
        }
 
-       ModelineOptions *previous = g_object_get_data (G_OBJECT (buffer), 
+       ModelineOptions *previous = g_object_get_data (G_OBJECT (buffer),
                                                       MODELINE_OPTIONS_DATA_KEY);
 
        settings = g_settings_new ("org.gnome.gedit.preferences.editor");
@@ -794,12 +794,12 @@ modeline_parser_apply_modeline (GtkSourceView *view)
        else if (check_previous (view, previous, MODELINE_SET_INSERT_SPACES))
        {
                gboolean insert_spaces;
-               
+
                insert_spaces = g_settings_get_boolean (settings, GEDIT_SETTINGS_INSERT_SPACES);
-       
+
                gtk_source_view_set_insert_spaces_instead_of_tabs (view, insert_spaces);
        }
-       
+
        if (has_option (&options, MODELINE_SET_TAB_WIDTH))
        {
                gtk_source_view_set_tab_width (view, options.tab_width);
@@ -807,12 +807,12 @@ modeline_parser_apply_modeline (GtkSourceView *view)
        else if (check_previous (view, previous, MODELINE_SET_TAB_WIDTH))
        {
                guint tab_width;
-               
+
                g_settings_get (settings, GEDIT_SETTINGS_TABS_SIZE, "u", &tab_width);
-       
+
                gtk_source_view_set_tab_width (view, tab_width);
        }
-       
+
        if (has_option (&options, MODELINE_SET_INDENT_WIDTH))
        {
                gtk_source_view_set_indent_width (view, options.indent_width);
@@ -821,7 +821,7 @@ modeline_parser_apply_modeline (GtkSourceView *view)
        {
                gtk_source_view_set_indent_width (view, -1);
        }
-       
+
        if (has_option (&options, MODELINE_SET_WRAP_MODE))
        {
                gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), options.wrap_mode);
@@ -829,12 +829,12 @@ modeline_parser_apply_modeline (GtkSourceView *view)
        else if (check_previous (view, previous, MODELINE_SET_WRAP_MODE))
        {
                GtkWrapMode mode;
-               
+
                mode = g_settings_get_enum (settings,
                                            GEDIT_SETTINGS_WRAP_MODE);
                gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), mode);
        }
-       
+
        if (has_option (&options, MODELINE_SET_RIGHT_MARGIN_POSITION))
        {
                gtk_source_view_set_right_margin_position (view, options.right_margin_position);
@@ -842,13 +842,13 @@ modeline_parser_apply_modeline (GtkSourceView *view)
        else if (check_previous (view, previous, MODELINE_SET_RIGHT_MARGIN_POSITION))
        {
                guint right_margin_pos;
-               
+
                g_settings_get (settings, GEDIT_SETTINGS_RIGHT_MARGIN_POSITION, "u",
                                &right_margin_pos);
-               gtk_source_view_set_right_margin_position (view, 
+               gtk_source_view_set_right_margin_position (view,
                                                           right_margin_pos);
        }
-       
+
        if (has_option (&options, MODELINE_SET_SHOW_RIGHT_MARGIN))
        {
                gtk_source_view_set_show_right_margin (view, options.display_right_margin);
@@ -856,12 +856,12 @@ modeline_parser_apply_modeline (GtkSourceView *view)
        else if (check_previous (view, previous, MODELINE_SET_SHOW_RIGHT_MARGIN))
        {
                gboolean display_right_margin;
-               
+
                display_right_margin = g_settings_get_boolean (settings,
                                                               GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN);
                gtk_source_view_set_show_right_margin (view, display_right_margin);
        }
-       
+
        if (previous)
        {
                g_free (previous->language_id);
@@ -873,9 +873,9 @@ modeline_parser_apply_modeline (GtkSourceView *view)
                previous = g_slice_new (ModelineOptions);
                *previous = options;
                previous->language_id = g_strdup (options.language_id);
-               
-               g_object_set_data_full (G_OBJECT (buffer), 
-                                       MODELINE_OPTIONS_DATA_KEY, 
+
+               g_object_set_data_full (G_OBJECT (buffer),
+                                       MODELINE_OPTIONS_DATA_KEY,
                                        previous,
                                        (GDestroyNotify)free_modeline_options);
        }
diff --git a/plugins/modelines/modeline-parser.h b/plugins/modelines/modeline-parser.h
index 44583ac..c87cd25 100644
--- a/plugins/modelines/modeline-parser.h
+++ b/plugins/modelines/modeline-parser.h
@@ -1,14 +1,14 @@
 /*
  * modelie-parser.h
  * Emacs, Kate and Vim-style modelines support for gedit.
- * 
+ *
  * Copyright (C) 2005-2007 - Steve Frécinaux <code istique net>
  *
  * 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
diff --git a/plugins/sort/gedit-sort-plugin.c b/plugins/sort/gedit-sort-plugin.c
index a1cf98e..b04d346 100644
--- a/plugins/sort/gedit-sort-plugin.c
+++ b/plugins/sort/gedit-sort-plugin.c
@@ -1,6 +1,6 @@
 /*
  * gedit-sort-plugin.c
- * 
+ *
  * Original author: Carlo Borreo <borreo softhome net>
  * Ported to Gedit2 by Lee Mallabone <gnome fonicmonkey net>
  *
@@ -8,7 +8,7 @@
  * 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
@@ -198,7 +198,7 @@ sort_cb (GtkAction       *action,
 
        gtk_window_set_transient_for (GTK_WINDOW (priv->dialog),
                                      GTK_WINDOW (priv->window));
-                                     
+
        gtk_window_set_modal (GTK_WINDOW (priv->dialog),
                              TRUE);
 
diff --git a/plugins/sort/gedit-sort-plugin.h b/plugins/sort/gedit-sort-plugin.h
index 78ae001..ab497c7 100644
--- a/plugins/sort/gedit-sort-plugin.h
+++ b/plugins/sort/gedit-sort-plugin.h
@@ -1,6 +1,6 @@
 /*
  * gedit-sort-plugin.h
- * 
+ *
  * 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)
diff --git a/plugins/spell/gedit-automatic-spell-checker.c b/plugins/spell/gedit-automatic-spell-checker.c
index 5a825eb..a6f6635 100644
--- a/plugins/spell/gedit-automatic-spell-checker.c
+++ b/plugins/spell/gedit-automatic-spell-checker.c
@@ -3,7 +3,7 @@
  * gedit-automatic-spell-checker.c
  * This file is part of gedit
  *
- * Copyright (C) 2002 Paolo Maggi 
+ * Copyright (C) 2002 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2002. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 /* This is a modified version of gtkspell 2.0.5  (gtkspell.sf.net) */
@@ -46,7 +46,7 @@
 struct _GeditAutomaticSpellChecker {
        GeditDocument           *doc;
        GSList                  *views;
-       
+
        GtkTextMark             *mark_insert_start;
        GtkTextMark             *mark_insert_end;
        gboolean                 deferred_check;
@@ -69,7 +69,7 @@ view_destroy (GeditView *view, GeditAutomaticSpellChecker *spell)
 }
 
 static void
-check_word (GeditAutomaticSpellChecker *spell, GtkTextIter *start, GtkTextIter *end) 
+check_word (GeditAutomaticSpellChecker *spell, GtkTextIter *start, GtkTextIter *end)
 {
        gchar *word;
 
@@ -80,34 +80,34 @@ check_word (GeditAutomaticSpellChecker *spell, GtkTextIter *start, GtkTextIter *
                                                gtk_text_iter_get_offset (end));
        */
 
-       if (!gedit_spell_checker_check_word (spell->spell_checker, word, -1)) 
+       if (!gedit_spell_checker_check_word (spell->spell_checker, word, -1))
        {
                /*
                g_print ("Apply tag: [%d - %d]\n", gtk_text_iter_get_offset (start),
                                                gtk_text_iter_get_offset (end));
                */
-               gtk_text_buffer_apply_tag (GTK_TEXT_BUFFER (spell->doc), 
-                                          spell->tag_highlight, 
-                                          start, 
+               gtk_text_buffer_apply_tag (GTK_TEXT_BUFFER (spell->doc),
+                                          spell->tag_highlight,
+                                          start,
                                           end);
        }
-       
+
        g_free (word);
 }
 
 static void
-check_range (GeditAutomaticSpellChecker *spell, 
-            GtkTextIter                 start, 
+check_range (GeditAutomaticSpellChecker *spell,
+            GtkTextIter                 start,
             GtkTextIter                 end,
-            gboolean                    force_all) 
+            gboolean                    force_all)
 {
        /* we need to "split" on word boundaries.
-        * luckily, Pango knows what "words" are 
+        * luckily, Pango knows what "words" are
         * so we don't have to figure it out. */
 
        GtkTextIter wstart;
        GtkTextIter wend;
-       GtkTextIter cursor; 
+       GtkTextIter cursor;
        GtkTextIter precursor;
        gboolean    highlight;
 
@@ -118,65 +118,65 @@ check_range (GeditAutomaticSpellChecker *spell,
 
        if (gtk_text_iter_inside_word (&end))
                gtk_text_iter_forward_word_end (&end);
-       
-       if (!gtk_text_iter_starts_word (&start)) 
+
+       if (!gtk_text_iter_starts_word (&start))
        {
-               if (gtk_text_iter_inside_word (&start) || 
-                   gtk_text_iter_ends_word (&start)) 
+               if (gtk_text_iter_inside_word (&start) ||
+                   gtk_text_iter_ends_word (&start))
                {
                        gtk_text_iter_backward_word_start (&start);
-               } 
-               else 
+               }
+               else
                {
                        /* if we're neither at the beginning nor inside a word,
                         * me must be in some spaces.
                         * skip forward to the beginning of the next word. */
-                       
+
                        if (gtk_text_iter_forward_word_end (&start))
                                gtk_text_iter_backward_word_start (&start);
                }
        }
 
-       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (spell->doc), 
+       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (spell->doc),
                                          &cursor,
                                          gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (spell->doc)));
-        
+
        precursor = cursor;
        gtk_text_iter_backward_char (&precursor);
-       
+
        highlight = gtk_text_iter_has_tag (&cursor, spell->tag_highlight) ||
                    gtk_text_iter_has_tag (&precursor, spell->tag_highlight);
-       
-       gtk_text_buffer_remove_tag (GTK_TEXT_BUFFER (spell->doc), 
-                                   spell->tag_highlight, 
-                                   &start, 
+
+       gtk_text_buffer_remove_tag (GTK_TEXT_BUFFER (spell->doc),
+                                   spell->tag_highlight,
+                                   &start,
                                    &end);
 
        /* Fix a corner case when replacement occurs at beginning of buffer:
         * An iter at offset 0 seems to always be inside a word,
         * even if it's not.  Possibly a pango bug.
         */
-       if (gtk_text_iter_get_offset (&start) == 0) 
+       if (gtk_text_iter_get_offset (&start) == 0)
        {
                gtk_text_iter_forward_word_end(&start);
                gtk_text_iter_backward_word_start(&start);
        }
 
        wstart = start;
-       
+
        while (gedit_spell_utils_skip_no_spell_check (&wstart, &end) &&
-              gtk_text_iter_compare (&wstart, &end) < 0) 
+              gtk_text_iter_compare (&wstart, &end) < 0)
        {
-               gboolean inword; 
+               gboolean inword;
 
                /* move wend to the end of the current word. */
                wend = wstart;
-               
+
                gtk_text_iter_forward_word_end (&wend);
 
                inword = (gtk_text_iter_compare (&wstart, &cursor) < 0) &&
                         (gtk_text_iter_compare (&cursor, &wend) <= 0);
-        
+
                if (inword && !force_all)
                {
                        /* this word is being actively edited,
@@ -186,8 +186,8 @@ check_range (GeditAutomaticSpellChecker *spell,
                                check_word (spell, &wstart, &wend);
                        else
                                spell->deferred_check = TRUE;
-               } 
-               else 
+               }
+               else
                {
                        check_word (spell, &wstart, &wend);
                        spell->deferred_check = FALSE;
@@ -196,7 +196,7 @@ check_range (GeditAutomaticSpellChecker *spell,
                /* now move wend to the beginning of the next word, */
                gtk_text_iter_forward_word_end (&wend);
                gtk_text_iter_backward_word_start (&wend);
-               
+
                /* make sure we've actually advanced
                 * (we don't advance in some corner cases), */
                if (gtk_text_iter_equal (&wstart, &wend))
@@ -208,16 +208,16 @@ check_range (GeditAutomaticSpellChecker *spell,
 }
 
 static void
-check_deferred_range (GeditAutomaticSpellChecker *spell, 
-                     gboolean                    force_all) 
+check_deferred_range (GeditAutomaticSpellChecker *spell,
+                     gboolean                    force_all)
 {
        GtkTextIter start, end;
 
-       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (spell->doc), 
-                                         &start, 
+       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (spell->doc),
+                                         &start,
                                          spell->mark_insert_start);
        gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (spell->doc),
-                                         &end, 
+                                         &end,
                                          spell->mark_insert_end);
 
        check_range (spell, start, end, force_all);
@@ -232,20 +232,20 @@ check_deferred_range (GeditAutomaticSpellChecker *spell,
 
 static void
 insert_text_before (GtkTextBuffer *buffer, GtkTextIter *iter,
-               gchar *text, gint len, GeditAutomaticSpellChecker *spell) 
+               gchar *text, gint len, GeditAutomaticSpellChecker *spell)
 {
        gtk_text_buffer_move_mark (buffer, spell->mark_insert_start, iter);
 }
 
 static void
 insert_text_after (GtkTextBuffer *buffer, GtkTextIter *iter,
-                  gchar *text, gint len, GeditAutomaticSpellChecker *spell) 
+                  gchar *text, gint len, GeditAutomaticSpellChecker *spell)
 {
        GtkTextIter start;
 
        /* we need to check a range of text. */
        gtk_text_buffer_get_iter_at_mark (buffer, &start, spell->mark_insert_start);
-       
+
        check_range (spell, start, *iter, FALSE);
 
        gtk_text_buffer_move_mark (buffer, spell->mark_insert_end, iter);
@@ -259,17 +259,17 @@ insert_text_after (GtkTextBuffer *buffer, GtkTextIter *iter,
  */
 
 static void
-delete_range_after (GtkTextBuffer *buffer, GtkTextIter *start, GtkTextIter *end, 
-               GeditAutomaticSpellChecker *spell) 
+delete_range_after (GtkTextBuffer *buffer, GtkTextIter *start, GtkTextIter *end,
+               GeditAutomaticSpellChecker *spell)
 {
        check_range (spell, *start, *end, FALSE);
 }
 
 static void
-mark_set (GtkTextBuffer              *buffer, 
+mark_set (GtkTextBuffer              *buffer,
          GtkTextIter                *iter,
-         GtkTextMark                *mark, 
-         GeditAutomaticSpellChecker *spell) 
+         GtkTextMark                *mark,
+         GeditAutomaticSpellChecker *spell)
 {
        /* if the cursor has moved and there is a deferred check so handle it now */
        if ((mark == gtk_text_buffer_get_insert (buffer)) && spell->deferred_check)
@@ -277,18 +277,18 @@ mark_set (GtkTextBuffer              *buffer,
 }
 
 static void
-get_word_extents_from_mark (GtkTextBuffer *buffer, 
-                           GtkTextIter   *start, 
+get_word_extents_from_mark (GtkTextBuffer *buffer,
+                           GtkTextIter   *start,
                            GtkTextIter   *end,
                            GtkTextMark   *mark)
 {
        gtk_text_buffer_get_iter_at_mark(buffer, start, mark);
-       
-       if (!gtk_text_iter_starts_word (start)) 
+
+       if (!gtk_text_iter_starts_word (start))
                gtk_text_iter_backward_word_start (start);
-       
+
        *end = *start;
-       
+
        if (gtk_text_iter_inside_word (end))
                gtk_text_iter_forward_word_end (end);
 }
@@ -302,17 +302,17 @@ remove_tag_to_word (GeditAutomaticSpellChecker *spell, const gchar *word)
        gboolean found;
 
        gtk_text_buffer_get_iter_at_offset (GTK_TEXT_BUFFER (spell->doc), &iter, 0);
-       
+
        found = TRUE;
 
        while (found)
        {
-               found = gtk_text_iter_forward_search (&iter, 
-                               word, 
+               found = gtk_text_iter_forward_search (&iter,
+                               word,
                                GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY,
-                               &match_start, 
+                               &match_start,
                                &match_end,
-                               NULL);  
+                               NULL);
 
                if (found)
                {
@@ -321,7 +321,7 @@ remove_tag_to_word (GeditAutomaticSpellChecker *spell, const gchar *word)
                        {
                                gtk_text_buffer_remove_tag (GTK_TEXT_BUFFER (spell->doc),
                                                spell->tag_highlight,
-                                               &match_start, 
+                                               &match_start,
                                                &match_end);
                        }
 
@@ -331,55 +331,55 @@ remove_tag_to_word (GeditAutomaticSpellChecker *spell, const gchar *word)
 }
 
 static void
-add_to_dictionary (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell) 
+add_to_dictionary (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell)
 {
        gchar *word;
-       
+
        GtkTextIter start, end;
-       
-       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);     
 
-       word = gtk_text_buffer_get_text (GTK_TEXT_BUFFER (spell->doc), 
-                                        &start, 
-                                        &end, 
+       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);
+
+       word = gtk_text_buffer_get_text (GTK_TEXT_BUFFER (spell->doc),
+                                        &start,
+                                        &end,
                                         FALSE);
-       
+
        gedit_spell_checker_add_word_to_personal (spell->spell_checker, word, -1);
 
        g_free (word);
 }
 
 static void
-ignore_all (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell) 
+ignore_all (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell)
 {
        gchar *word;
-       
+
        GtkTextIter start, end;
-       
-       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);     
 
-       word = gtk_text_buffer_get_text (GTK_TEXT_BUFFER (spell->doc), 
-                                        &start, 
-                                        &end, 
+       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);
+
+       word = gtk_text_buffer_get_text (GTK_TEXT_BUFFER (spell->doc),
+                                        &start,
+                                        &end,
                                         FALSE);
-       
+
        gedit_spell_checker_add_word_to_session (spell->spell_checker, word, -1);
 
        g_free (word);
 }
 
 static void
-replace_word (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell) 
+replace_word (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell)
 {
        gchar *oldword;
        const gchar *newword;
-       
+
        GtkTextIter start, end;
 
-       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);     
+       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);
 
        oldword = gtk_text_buffer_get_text (GTK_TEXT_BUFFER (spell->doc), &start, &end, FALSE);
-       
+
        newword =  g_object_get_qdata (G_OBJECT (menuitem), suggestion_id);
        g_return_if_fail (newword != NULL);
 
@@ -390,7 +390,7 @@ replace_word (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell)
 
        gtk_text_buffer_end_user_action (GTK_TEXT_BUFFER (spell->doc));
 
-       gedit_spell_checker_set_correction (spell->spell_checker, 
+       gedit_spell_checker_set_correction (spell->spell_checker,
                                oldword, strlen (oldword),
                                newword, strlen (newword));
 
@@ -398,49 +398,49 @@ replace_word (GtkWidget *menuitem, GeditAutomaticSpellChecker *spell)
 }
 
 static GtkWidget *
-build_suggestion_menu (GeditAutomaticSpellChecker *spell, const gchar *word) 
+build_suggestion_menu (GeditAutomaticSpellChecker *spell, const gchar *word)
 {
        GtkWidget *topmenu, *menu;
        GtkWidget *mi;
        GSList *suggestions;
        GSList *list;
        gchar *label_text;
-       
+
        topmenu = menu = gtk_menu_new();
 
        suggestions = gedit_spell_checker_get_suggestions (spell->spell_checker, word, -1);
 
        list = suggestions;
 
-       if (suggestions == NULL) 
-       {               
+       if (suggestions == NULL)
+       {
                /* no suggestions.  put something in the menu anyway... */
                GtkWidget *label;
                /* Translators: Displayed in the "Check Spelling" dialog if there are no suggestions for the 
current misspelled word */
                label = gtk_label_new (_("(no suggested words)"));
-               
+
                mi = gtk_menu_item_new ();
                gtk_widget_set_sensitive (mi, FALSE);
                gtk_container_add (GTK_CONTAINER(mi), label);
                gtk_widget_show_all (mi);
                gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), mi);
-       } 
-       else 
+       }
+       else
        {
                gint count = 0;
-               
+
                /* build a set of menus with suggestions. */
-               while (suggestions != NULL) 
+               while (suggestions != NULL)
                {
                        GtkWidget *label;
 
-                       if (count == 10) 
+                       if (count == 10)
                        {
                                /* Separator */
                                mi = gtk_separator_menu_item_new ();
                                gtk_widget_show (mi);
                                gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
-       
+
                                mi = gtk_menu_item_new_with_mnemonic (_("_More..."));
                                gtk_widget_show (mi);
                                gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
@@ -449,22 +449,22 @@ build_suggestion_menu (GeditAutomaticSpellChecker *spell, const gchar *word)
                                gtk_menu_item_set_submenu (GTK_MENU_ITEM (mi), menu);
                                count = 0;
                        }
-                       
+
                        label_text = g_strdup_printf ("<b>%s</b>", (gchar*) suggestions->data);
-                       
+
                        label = gtk_label_new (label_text);
                        gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
                        gtk_widget_set_halign (label, GTK_ALIGN_START);
 
                        mi = gtk_menu_item_new ();
                        gtk_container_add (GTK_CONTAINER(mi), label);
-                       
+
                        gtk_widget_show_all (mi);
                        gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
 
-                       g_object_set_qdata_full (G_OBJECT (mi), 
-                                suggestion_id, 
-                                g_strdup (suggestions->data), 
+                       g_object_set_qdata_full (G_OBJECT (mi),
+                                suggestion_id,
+                                g_strdup (suggestions->data),
                                 (GDestroyNotify)g_free);
 
                        g_free (label_text);
@@ -498,9 +498,9 @@ build_suggestion_menu (GeditAutomaticSpellChecker *spell, const gchar *word)
        /* Ignore all */
        mi = gtk_image_menu_item_new_with_mnemonic (_("_Ignore All"));
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi),
-                                      gtk_image_new_from_stock (GTK_STOCK_GOTO_BOTTOM, 
+                                      gtk_image_new_from_stock (GTK_STOCK_GOTO_BOTTOM,
                                                                 GTK_ICON_SIZE_MENU));
-       
+
        g_signal_connect (mi,
                          "activate",
                          G_CALLBACK(ignore_all),
@@ -513,7 +513,7 @@ build_suggestion_menu (GeditAutomaticSpellChecker *spell, const gchar *word)
        /* + Add to Dictionary */
        mi = gtk_image_menu_item_new_with_mnemonic (_("_Add"));
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi),
-                                      gtk_image_new_from_stock (GTK_STOCK_ADD, 
+                                      gtk_image_new_from_stock (GTK_STOCK_ADD,
                                                                 GTK_ICON_SIZE_MENU));
 
        g_signal_connect (mi,
@@ -522,23 +522,23 @@ build_suggestion_menu (GeditAutomaticSpellChecker *spell, const gchar *word)
                          spell);
 
        gtk_widget_show_all (mi);
-       
+
        gtk_menu_shell_append (GTK_MENU_SHELL (topmenu), mi);
 
        return topmenu;
 }
 
 static void
-populate_popup (GtkTextView *textview, GtkMenu *menu, GeditAutomaticSpellChecker *spell) 
+populate_popup (GtkTextView *textview, GtkMenu *menu, GeditAutomaticSpellChecker *spell)
 {
        GtkWidget *img, *mi;
        GtkTextIter start, end;
        char *word;
 
        /* we need to figure out if they picked a misspelled word. */
-       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);     
+       get_word_extents_from_mark (GTK_TEXT_BUFFER (spell->doc), &start, &end, spell->mark_click);
 
-       /* if our highlight algorithm ever messes up, 
+       /* if our highlight algorithm ever messes up,
         * this isn't correct, either. */
        if (!gtk_text_iter_has_tag (&start, spell->tag_highlight))
                return; /* word wasn't misspelled. */
@@ -574,9 +574,9 @@ gedit_automatic_spell_checker_recheck_all (GeditAutomaticSpellChecker *spell)
        check_range (spell, start, end, TRUE);
 }
 
-static void 
-add_word_signal_cb (GeditSpellChecker          *checker, 
-                   const gchar                *word, 
+static void
+add_word_signal_cb (GeditSpellChecker          *checker,
+                   const gchar                *word,
                    gint                        len,
                    GeditAutomaticSpellChecker *spell)
 {
@@ -592,7 +592,7 @@ add_word_signal_cb (GeditSpellChecker          *checker,
        g_free (w);
 }
 
-static void 
+static void
 set_language_cb (GeditSpellChecker               *checker,
                 const GeditSpellCheckerLanguage *lang,
                 GeditAutomaticSpellChecker      *spell)
@@ -600,7 +600,7 @@ set_language_cb (GeditSpellChecker               *checker,
        gedit_automatic_spell_checker_recheck_all (spell);
 }
 
-static void 
+static void
 clear_session_cb (GeditSpellChecker          *checker,
                  GeditAutomaticSpellChecker *spell)
 {
@@ -609,14 +609,14 @@ clear_session_cb (GeditSpellChecker          *checker,
 
 /* When the user right-clicks on a word, they want to check that word.
  * Here, we do NOT  move the cursor to the location of the clicked-upon word
- * since that prevents the use of edit functions on the context menu. 
+ * since that prevents the use of edit functions on the context menu.
  */
 static gboolean
 button_press_event (GtkTextView *view,
                    GdkEventButton *event,
-                   GeditAutomaticSpellChecker *spell) 
+                   GeditAutomaticSpellChecker *spell)
 {
-       if (event->button == GDK_BUTTON_SECONDARY) 
+       if (event->button == GDK_BUTTON_SECONDARY)
        {
                gint x, y;
                GtkTextIter iter;
@@ -627,11 +627,11 @@ button_press_event (GtkTextView *view,
                if (spell->deferred_check)
                        check_deferred_range (spell, TRUE);
 
-               gtk_text_view_window_to_buffer_coords (view, 
-                               GTK_TEXT_WINDOW_TEXT, 
+               gtk_text_view_window_to_buffer_coords (view,
+                               GTK_TEXT_WINDOW_TEXT,
                                event->x, event->y,
                                &x, &y);
-               
+
                gtk_text_view_get_iter_at_location (view, &iter, x, y);
 
                gtk_text_buffer_move_mark (buffer, spell->mark_click, &iter);
@@ -645,7 +645,7 @@ button_press_event (GtkTextView *view,
  * will contain the wrong set of suggestions.
  */
 static gboolean
-popup_menu_event (GtkTextView *view, GeditAutomaticSpellChecker *spell) 
+popup_menu_event (GtkTextView *view, GeditAutomaticSpellChecker *spell)
 {
        GtkTextIter iter;
        GtkTextBuffer *buffer;
@@ -673,7 +673,7 @@ tag_table_changed (GtkTextTagTable            *table,
                                   gtk_text_tag_table_get_size (table) - 1);
 }
 
-static void 
+static void
 tag_added_or_removed (GtkTextTagTable            *table,
                      GtkTextTag                 *tag,
                      GeditAutomaticSpellChecker *spell)
@@ -681,7 +681,7 @@ tag_added_or_removed (GtkTextTagTable            *table,
        tag_table_changed (table, spell);
 }
 
-static void 
+static void
 tag_changed (GtkTextTagTable            *table,
             GtkTextTag                 *tag,
             gboolean                    size_changed,
@@ -718,7 +718,7 @@ gedit_automatic_spell_checker_new (GeditDocument     *doc,
        g_return_val_if_fail (GEDIT_IS_SPELL_CHECKER (checker), NULL);
        g_return_val_if_fail ((spell = gedit_automatic_spell_checker_get_from_document (doc)) == NULL,
                              spell);
-       
+
        /* attach to the widget */
        spell = g_new0 (GeditAutomaticSpellChecker, 1);
 
@@ -727,7 +727,7 @@ gedit_automatic_spell_checker_new (GeditDocument     *doc,
 
        if (automatic_spell_checker_id == 0)
        {
-               automatic_spell_checker_id = 
+               automatic_spell_checker_id =
                        g_quark_from_string ("GeditAutomaticSpellCheckerID");
        }
        if (suggestion_id == 0)
@@ -735,26 +735,26 @@ gedit_automatic_spell_checker_new (GeditDocument     *doc,
                suggestion_id = g_quark_from_string ("GeditAutoSuggestionID");
        }
 
-       g_object_set_qdata_full (G_OBJECT (doc), 
-                                automatic_spell_checker_id, 
-                                spell, 
+       g_object_set_qdata_full (G_OBJECT (doc),
+                                automatic_spell_checker_id,
+                                spell,
                                 (GDestroyNotify)gedit_automatic_spell_checker_free_internal);
 
        g_signal_connect (doc,
                          "insert-text",
-                         G_CALLBACK (insert_text_before), 
+                         G_CALLBACK (insert_text_before),
                          spell);
        g_signal_connect_after (doc,
                          "insert-text",
-                         G_CALLBACK (insert_text_after), 
+                         G_CALLBACK (insert_text_after),
                          spell);
        g_signal_connect_after (doc,
                          "delete-range",
-                         G_CALLBACK (delete_range_after), 
+                         G_CALLBACK (delete_range_after),
                          spell);
        g_signal_connect (doc,
                          "mark-set",
-                         G_CALLBACK (mark_set), 
+                         G_CALLBACK (mark_set),
                          spell);
 
        g_signal_connect (doc,
@@ -791,7 +791,7 @@ gedit_automatic_spell_checker_new (GeditDocument     *doc,
 
        tag_table = gtk_text_buffer_get_tag_table (GTK_TEXT_BUFFER (doc));
 
-       gtk_text_tag_set_priority (spell->tag_highlight, 
+       gtk_text_tag_set_priority (spell->tag_highlight,
                                   gtk_text_tag_table_get_size (tag_table) - 1);
 
        g_signal_connect (tag_table,
@@ -810,16 +810,16 @@ gedit_automatic_spell_checker_new (GeditDocument     *doc,
        /* we create the mark here, but we don't use it until text is
         * inserted, so we don't really care where iter points.  */
        gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (doc), &start, &end);
-       
+
        spell->mark_insert_start = gtk_text_buffer_get_mark (GTK_TEXT_BUFFER (doc),
                                        "gedit-automatic-spell-checker-insert-start");
 
        if (spell->mark_insert_start == NULL)
        {
-               spell->mark_insert_start = 
+               spell->mark_insert_start =
                        gtk_text_buffer_create_mark (GTK_TEXT_BUFFER (doc),
                                                     "gedit-automatic-spell-checker-insert-start",
-                                                    &start, 
+                                                    &start,
                                                     TRUE);
        }
        else
@@ -834,10 +834,10 @@ gedit_automatic_spell_checker_new (GeditDocument     *doc,
 
        if (spell->mark_insert_end == NULL)
        {
-               spell->mark_insert_end = 
+               spell->mark_insert_end =
                        gtk_text_buffer_create_mark (GTK_TEXT_BUFFER (doc),
                                                     "gedit-automatic-spell-checker-insert-end",
-                                                    &start, 
+                                                    &start,
                                                     TRUE);
        }
        else
@@ -852,10 +852,10 @@ gedit_automatic_spell_checker_new (GeditDocument     *doc,
 
        if (spell->mark_click == NULL)
        {
-               spell->mark_click = 
+               spell->mark_click =
                        gtk_text_buffer_create_mark (GTK_TEXT_BUFFER (doc),
                                                     "gedit-automatic-spell-checker-click",
-                                                    &start, 
+                                                    &start,
                                                     TRUE);
        }
        else
@@ -879,18 +879,18 @@ gedit_automatic_spell_checker_get_from_document (const GeditDocument *doc)
                return NULL;
 
        return g_object_get_qdata (G_OBJECT (doc), automatic_spell_checker_id);
-}      
+}
 
 void
 gedit_automatic_spell_checker_free (GeditAutomaticSpellChecker *spell)
 {
        g_return_if_fail (spell != NULL);
        g_return_if_fail (gedit_automatic_spell_checker_get_from_document (spell->doc) == spell);
-       
+
        if (automatic_spell_checker_id == 0)
                return;
 
-       g_object_set_qdata (G_OBJECT (spell->doc), automatic_spell_checker_id, NULL);   
+       g_object_set_qdata (G_OBJECT (spell->doc), automatic_spell_checker_id, NULL);
 }
 
 static void
@@ -899,19 +899,19 @@ gedit_automatic_spell_checker_free_internal (GeditAutomaticSpellChecker *spell)
        GtkTextTagTable *table;
        GtkTextIter start, end;
        GSList *list;
-       
+
        g_return_if_fail (spell != NULL);
 
        table = gtk_text_buffer_get_tag_table (GTK_TEXT_BUFFER (spell->doc));
 
        if (table != NULL && spell->tag_highlight != NULL)
        {
-               gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (spell->doc), 
-                                           &start, 
+               gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (spell->doc),
+                                           &start,
                                            &end);
-               gtk_text_buffer_remove_tag (GTK_TEXT_BUFFER (spell->doc), 
-                                           spell->tag_highlight, 
-                                           &start, 
+               gtk_text_buffer_remove_tag (GTK_TEXT_BUFFER (spell->doc),
+                                           spell->tag_highlight,
+                                           &start,
                                            &end);
 
                g_signal_handlers_disconnect_matched (G_OBJECT (table),
@@ -921,7 +921,7 @@ gedit_automatic_spell_checker_free_internal (GeditAutomaticSpellChecker *spell)
 
                gtk_text_tag_table_remove (table, spell->tag_highlight);
        }
-               
+
        g_signal_handlers_disconnect_matched (G_OBJECT (spell->doc),
                        G_SIGNAL_MATCH_DATA,
                        0, 0, NULL, NULL,
@@ -938,7 +938,7 @@ gedit_automatic_spell_checker_free_internal (GeditAutomaticSpellChecker *spell)
        while (list != NULL)
        {
                GeditView *view = GEDIT_VIEW (list->data);
-               
+
                g_signal_handlers_disconnect_matched (G_OBJECT (view),
                                G_SIGNAL_MATCH_DATA,
                                0, 0, NULL, NULL,
@@ -953,13 +953,13 @@ gedit_automatic_spell_checker_free_internal (GeditAutomaticSpellChecker *spell)
        }
 
        g_slist_free (spell->views);
-       
+
        g_free (spell);
 }
 
 void
 gedit_automatic_spell_checker_attach_view (
-               GeditAutomaticSpellChecker *spell, 
+               GeditAutomaticSpellChecker *spell,
                GeditView *view)
 {
        g_return_if_fail (spell != NULL);
@@ -970,25 +970,25 @@ gedit_automatic_spell_checker_attach_view (
 
        g_signal_connect (view,
                          "button-press-event",
-                         G_CALLBACK (button_press_event), 
+                         G_CALLBACK (button_press_event),
                          spell);
        g_signal_connect (view,
                          "popup-menu",
-                         G_CALLBACK (popup_menu_event), 
+                         G_CALLBACK (popup_menu_event),
                          spell);
        g_signal_connect (view,
                          "populate-popup",
-                         G_CALLBACK (populate_popup), 
+                         G_CALLBACK (populate_popup),
                          spell);
        g_signal_connect (view,
                          "destroy",
-                         G_CALLBACK (view_destroy), 
+                         G_CALLBACK (view_destroy),
                          spell);
 
        spell->views = g_slist_prepend (spell->views, view);
 }
 
-void 
+void
 gedit_automatic_spell_checker_detach_view (
                GeditAutomaticSpellChecker *spell,
                GeditView *view)
diff --git a/plugins/spell/gedit-automatic-spell-checker.h b/plugins/spell/gedit-automatic-spell-checker.h
index c1b5b58..1c8a060 100644
--- a/plugins/spell/gedit-automatic-spell-checker.h
+++ b/plugins/spell/gedit-automatic-spell-checker.h
@@ -3,7 +3,7 @@
  * gedit-automatic-spell-checker.h
  * This file is part of gedit
  *
- * Copyright (C) 2002 Paolo Maggi 
+ * Copyright (C) 2002 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
 /*
- * Modified by the gedit Team, 2002. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 /* This is a modified version of gtkspell 2.0.2  (gtkspell.sf.net) */
@@ -48,7 +48,7 @@ GeditAutomaticSpellChecker    *gedit_automatic_spell_checker_new (
 
 GeditAutomaticSpellChecker     *gedit_automatic_spell_checker_get_from_document (
                                                        const GeditDocument             *doc);
-               
+
 void                            gedit_automatic_spell_checker_free (
                                                        GeditAutomaticSpellChecker      *spell);
 
diff --git a/plugins/spell/gedit-spell-checker-dialog.c b/plugins/spell/gedit-spell-checker-dialog.c
index 34784d2..058a6bc 100644
--- a/plugins/spell/gedit-spell-checker-dialog.c
+++ b/plugins/spell/gedit-spell-checker-dialog.c
@@ -3,7 +3,7 @@
  * gedit-spell-checker-dialog.c
  * This file is part of gedit
  *
- * Copyright (C) 2002 Paolo Maggi 
+ * Copyright (C) 2002 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2002. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -41,7 +41,7 @@
 #include "gedit-spell-checker-dialog.h"
 #include "gedit-spell-marshal.h"
 
-struct _GeditSpellCheckerDialog 
+struct _GeditSpellCheckerDialog
 {
        GtkWindow parent_instance;
 
@@ -80,26 +80,26 @@ enum
        NUM_COLUMNS
 };
 
-static void    update_suggestions_list_model                   (GeditSpellCheckerDialog *dlg, 
+static void    update_suggestions_list_model                   (GeditSpellCheckerDialog *dlg,
                                                                 GSList *suggestions);
 
-static void    word_entry_changed_handler                      (GtkEditable *editable, 
+static void    word_entry_changed_handler                      (GtkEditable *editable,
                                                                 GeditSpellCheckerDialog *dlg);
-static void    close_button_clicked_handler                    (GtkButton *button, 
+static void    close_button_clicked_handler                    (GtkButton *button,
                                                                 GeditSpellCheckerDialog *dlg);
 static void    suggestions_list_selection_changed_handler      (GtkTreeSelection *selection,
                                                                 GeditSpellCheckerDialog *dlg);
-static void    check_word_button_clicked_handler               (GtkButton *button, 
+static void    check_word_button_clicked_handler               (GtkButton *button,
                                                                 GeditSpellCheckerDialog *dlg);
-static void    add_word_button_clicked_handler                 (GtkButton *button, 
+static void    add_word_button_clicked_handler                 (GtkButton *button,
                                                                 GeditSpellCheckerDialog *dlg);
-static void    ignore_button_clicked_handler                   (GtkButton *button, 
+static void    ignore_button_clicked_handler                   (GtkButton *button,
                                                                 GeditSpellCheckerDialog *dlg);
-static void    ignore_all_button_clicked_handler               (GtkButton *button, 
+static void    ignore_all_button_clicked_handler               (GtkButton *button,
                                                                 GeditSpellCheckerDialog *dlg);
-static void    change_button_clicked_handler                   (GtkButton *button, 
+static void    change_button_clicked_handler                   (GtkButton *button,
                                                                 GeditSpellCheckerDialog *dlg);
-static void    change_all_button_clicked_handler               (GtkButton *button, 
+static void    change_all_button_clicked_handler               (GtkButton *button,
                                                                 GeditSpellCheckerDialog *dlg);
 static void    suggestions_list_row_activated_handler          (GtkTreeView *view,
                                                                 GtkTreePath *path,
@@ -145,61 +145,61 @@ gedit_spell_checker_dialog_class_init (GeditSpellCheckerDialogClass * klass)
        object_class->dispose = gedit_spell_checker_dialog_dispose;
        object_class->finalize = gedit_spell_checker_dialog_finalize;
 
-       signals[IGNORE] = 
+       signals[IGNORE] =
                g_signal_new ("ignore",
                              G_OBJECT_CLASS_TYPE (object_class),
                              G_SIGNAL_RUN_LAST,
                              G_STRUCT_OFFSET (GeditSpellCheckerDialogClass, ignore),
                              NULL, NULL,
                              gedit_marshal_VOID__STRING,
-                             G_TYPE_NONE, 
-                             1, 
+                             G_TYPE_NONE,
+                             1,
                              G_TYPE_STRING);
 
-       signals[IGNORE_ALL] = 
+       signals[IGNORE_ALL] =
                g_signal_new ("ignore_all",
                              G_OBJECT_CLASS_TYPE (object_class),
                              G_SIGNAL_RUN_LAST,
                              G_STRUCT_OFFSET (GeditSpellCheckerDialogClass, ignore_all),
                              NULL, NULL,
                              gedit_marshal_VOID__STRING,
-                             G_TYPE_NONE, 
-                             1, 
+                             G_TYPE_NONE,
+                             1,
                              G_TYPE_STRING);
 
-       signals[CHANGE] = 
+       signals[CHANGE] =
                g_signal_new ("change",
                              G_OBJECT_CLASS_TYPE (object_class),
                              G_SIGNAL_RUN_LAST,
                              G_STRUCT_OFFSET (GeditSpellCheckerDialogClass, change),
                              NULL, NULL,
                              gedit_marshal_VOID__STRING_STRING,
-                             G_TYPE_NONE, 
-                             2, 
+                             G_TYPE_NONE,
+                             2,
                              G_TYPE_STRING,
                              G_TYPE_STRING);
-       
-       signals[CHANGE_ALL] = 
+
+       signals[CHANGE_ALL] =
                g_signal_new ("change_all",
                              G_OBJECT_CLASS_TYPE (object_class),
                              G_SIGNAL_RUN_LAST,
                              G_STRUCT_OFFSET (GeditSpellCheckerDialogClass, change_all),
                              NULL, NULL,
                              gedit_marshal_VOID__STRING_STRING,
-                             G_TYPE_NONE, 
-                             2, 
+                             G_TYPE_NONE,
+                             2,
                              G_TYPE_STRING,
                              G_TYPE_STRING);
 
-       signals[ADD_WORD_TO_PERSONAL] = 
+       signals[ADD_WORD_TO_PERSONAL] =
                g_signal_new ("add_word_to_personal",
                              G_OBJECT_CLASS_TYPE (object_class),
                              G_SIGNAL_RUN_LAST,
                              G_STRUCT_OFFSET (GeditSpellCheckerDialogClass, add_word_to_personal),
                              NULL, NULL,
                              gedit_marshal_VOID__STRING,
-                             G_TYPE_NONE, 
-                             1, 
+                             G_TYPE_NONE,
+                             1,
                              G_TYPE_STRING);
 }
 
@@ -222,7 +222,7 @@ create_dialog (GeditSpellCheckerDialog *dlg,
                "change_all_image",
                NULL
        };
-       
+
        g_return_if_fail (dlg != NULL);
 
        dlg->spell_checker = NULL;
@@ -254,9 +254,9 @@ create_dialog (GeditSpellCheckerDialog *dlg,
        gtk_widget_set_sensitive (dlg->change_button, FALSE);
        gtk_widget_set_sensitive (dlg->change_all_button, FALSE);
        gtk_widget_set_sensitive (dlg->add_word_button, FALSE);
-       
+
        gtk_label_set_label (GTK_LABEL (dlg->language_label), "");
-                       
+
        gtk_container_add (GTK_CONTAINER (dlg), content);
        g_object_unref (content);
 
@@ -267,14 +267,14 @@ create_dialog (GeditSpellCheckerDialog *dlg,
        dlg->suggestions_list_model = GTK_TREE_MODEL (
                        gtk_list_store_new (NUM_COLUMNS, G_TYPE_STRING));
 
-       gtk_tree_view_set_model (GTK_TREE_VIEW (dlg->suggestions_list), 
+       gtk_tree_view_set_model (GTK_TREE_VIEW (dlg->suggestions_list),
                        dlg->suggestions_list_model);
 
        /* Add the suggestions column */
        cell = gtk_cell_renderer_text_new ();
-       column = gtk_tree_view_column_new_with_attributes (_("Suggestions"), cell, 
+       column = gtk_tree_view_column_new_with_attributes (_("Suggestions"), cell,
                        "text", COLUMN_SUGGESTIONS, NULL);
-       
+
        gtk_tree_view_append_column (GTK_TREE_VIEW (dlg->suggestions_list), column);
 
        gtk_tree_view_set_search_column (GTK_TREE_VIEW (dlg->suggestions_list),
@@ -295,8 +295,8 @@ create_dialog (GeditSpellCheckerDialog *dlg,
                          G_CALLBACK (word_entry_changed_handler), dlg);
        g_signal_connect (dlg->close_button, "clicked",
                          G_CALLBACK (close_button_clicked_handler), dlg);
-       g_signal_connect (selection, "changed", 
-                         G_CALLBACK (suggestions_list_selection_changed_handler), 
+       g_signal_connect (selection, "changed",
+                         G_CALLBACK (suggestions_list_selection_changed_handler),
                          dlg);
        g_signal_connect (dlg->check_word_button, "clicked",
                          G_CALLBACK (check_word_button_clicked_handler), dlg);
@@ -328,7 +328,7 @@ gedit_spell_checker_dialog_new (const gchar *data_dir)
                        g_object_new (GEDIT_TYPE_SPELL_CHECKER_DIALOG, NULL));
 
        g_return_val_if_fail (dlg != NULL, NULL);
-       
+
        create_dialog (dlg, data_dir);
 
        return GTK_WIDGET (dlg);
@@ -346,7 +346,7 @@ gedit_spell_checker_dialog_new_from_spell_checker (GeditSpellChecker *spell,
                        g_object_new (GEDIT_TYPE_SPELL_CHECKER_DIALOG, NULL));
 
        g_return_val_if_fail (dlg != NULL, NULL);
-       
+
        create_dialog (dlg, data_dir);
 
        gedit_spell_checker_dialog_set_spell_checker (dlg, spell);
@@ -360,16 +360,16 @@ gedit_spell_checker_dialog_set_spell_checker (GeditSpellCheckerDialog *dlg, Gedi
        const GeditSpellCheckerLanguage* language;
        const gchar *lang;
        gchar *tmp;
-       
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
        g_return_if_fail (spell != NULL);
-       
+
        if (dlg->spell_checker != NULL)
                g_object_unref (dlg->spell_checker);
 
        dlg->spell_checker = spell;
        g_object_ref (dlg->spell_checker);
-       
+
        language = gedit_spell_checker_get_language (dlg->spell_checker);
 
        lang = gedit_spell_checker_language_to_string (language);
@@ -387,7 +387,7 @@ gedit_spell_checker_dialog_set_spell_checker (GeditSpellCheckerDialog *dlg, Gedi
 }
 
 void
-gedit_spell_checker_dialog_set_misspelled_word (GeditSpellCheckerDialog *dlg, 
+gedit_spell_checker_dialog_set_misspelled_word (GeditSpellCheckerDialog *dlg,
                                                const gchar             *word,
                                                gint                     len)
 {
@@ -408,7 +408,7 @@ gedit_spell_checker_dialog_set_misspelled_word (GeditSpellCheckerDialog *dlg,
        g_free (tmp);
 
        sug = gedit_spell_checker_get_suggestions (dlg->spell_checker,
-                                                  dlg->misspelled_word, 
+                                                  dlg->misspelled_word,
                                                   -1);
 
        update_suggestions_list_model (dlg, sug);
@@ -426,10 +426,10 @@ update_suggestions_list_model (GeditSpellCheckerDialog *dlg, GSList *suggestions
        GtkListStore *store;
        GtkTreeIter iter;
        GtkTreeSelection *sel;
-       
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
        g_return_if_fail (GTK_IS_LIST_STORE (dlg->suggestions_list_model));
-                       
+
        store = GTK_LIST_STORE (dlg->suggestions_list_model);
        gtk_list_store_clear (store);
 
@@ -447,7 +447,7 @@ update_suggestions_list_model (GeditSpellCheckerDialog *dlg, GSList *suggestions
                gtk_entry_set_text (GTK_ENTRY (dlg->word_entry), "");
 
                gtk_widget_set_sensitive (dlg->suggestions_list, FALSE);
-       
+
                return;
        }
 
@@ -474,7 +474,7 @@ static void
 word_entry_changed_handler (GtkEditable *editable, GeditSpellCheckerDialog *dlg)
 {
        const gchar *text;
-       
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
 
        text =  gtk_entry_get_text (GTK_ENTRY (dlg->word_entry));
@@ -498,11 +498,11 @@ close_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *dlg)
 {
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
 
-       gtk_widget_destroy (GTK_WIDGET (dlg));  
+       gtk_widget_destroy (GTK_WIDGET (dlg));
 }
 
 static void
-suggestions_list_selection_changed_handler (GtkTreeSelection *selection, 
+suggestions_list_selection_changed_handler (GtkTreeSelection *selection,
                GeditSpellCheckerDialog *dlg)
 {
        GtkTreeIter iter;
@@ -521,7 +521,7 @@ suggestions_list_selection_changed_handler (GtkTreeSelection *selection,
        text = g_value_get_string (&value);
 
        gtk_entry_set_text (GTK_ENTRY (dlg->word_entry), text);
-       
+
        g_value_unset (&value);
 }
 
@@ -560,7 +560,7 @@ check_word_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *d
                sug = gedit_spell_checker_get_suggestions (dlg->spell_checker,
                                                           word,
                                                           len);
-       
+
                update_suggestions_list_model (dlg, sug);
 
                g_slist_free_full (sug, g_free);
@@ -570,13 +570,13 @@ check_word_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *d
 static void
 add_word_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *dlg)
 {
-       gchar *word;    
-       
+       gchar *word;
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
        g_return_if_fail (dlg->misspelled_word != NULL);
 
-       gedit_spell_checker_add_word_to_personal (dlg->spell_checker, 
-                                                 dlg->misspelled_word, 
+       gedit_spell_checker_add_word_to_personal (dlg->spell_checker,
+                                                 dlg->misspelled_word,
                                                  -1);
 
        word = g_strdup (dlg->misspelled_word);
@@ -590,7 +590,7 @@ static void
 ignore_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *dlg)
 {
        gchar *word;
-       
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
        g_return_if_fail (dlg->misspelled_word != NULL);
 
@@ -605,12 +605,12 @@ static void
 ignore_all_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *dlg)
 {
        gchar *word;
-       
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
        g_return_if_fail (dlg->misspelled_word != NULL);
 
        gedit_spell_checker_add_word_to_session (dlg->spell_checker,
-                                                dlg->misspelled_word, 
+                                                dlg->misspelled_word,
                                                 -1);
 
        word = g_strdup (dlg->misspelled_word);
@@ -633,16 +633,16 @@ change_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *dlg)
        g_return_if_fail (change != NULL);
        g_return_if_fail (*change != '\0');
 
-       gedit_spell_checker_set_correction (dlg->spell_checker, 
-                                           dlg->misspelled_word, -1, 
+       gedit_spell_checker_set_correction (dlg->spell_checker,
+                                           dlg->misspelled_word, -1,
                                            change, -1);
-       
+
        word = g_strdup (dlg->misspelled_word);
 
        g_signal_emit (G_OBJECT (dlg), signals [CHANGE], 0, word, change);
 
        g_free (word);
-       g_free (change);        
+       g_free (change);
 }
 
 /* double click on one of the suggestions is like clicking on "change" */
@@ -662,7 +662,7 @@ change_all_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *d
 {
        gchar *word;
        gchar *change;
-               
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
        g_return_if_fail (dlg->misspelled_word != NULL);
 
@@ -670,33 +670,33 @@ change_all_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *d
        g_return_if_fail (change != NULL);
        g_return_if_fail (*change != '\0');
 
-       gedit_spell_checker_set_correction (dlg->spell_checker, 
+       gedit_spell_checker_set_correction (dlg->spell_checker,
                                            dlg->misspelled_word, -1,
                                            change, -1);
-       
+
        word = g_strdup (dlg->misspelled_word);
 
        g_signal_emit (G_OBJECT (dlg), signals [CHANGE_ALL], 0, word, change);
 
        g_free (word);
-       g_free (change);        
+       g_free (change);
 }
 
-void 
+void
 gedit_spell_checker_dialog_set_completed (GeditSpellCheckerDialog *dlg)
 {
        gchar *tmp;
-       
+
        g_return_if_fail (GEDIT_IS_SPELL_CHECKER_DIALOG (dlg));
 
        tmp = g_strdup_printf("<b>%s</b>", _("Completed spell checking"));
-       gtk_label_set_label (GTK_LABEL (dlg->misspelled_word_label), 
+       gtk_label_set_label (GTK_LABEL (dlg->misspelled_word_label),
                             tmp);
        g_free (tmp);
 
        gtk_list_store_clear (GTK_LIST_STORE (dlg->suggestions_list_model));
        gtk_entry_set_text (GTK_ENTRY (dlg->word_entry), "");
-       
+
        gtk_widget_set_sensitive (dlg->word_entry, FALSE);
        gtk_widget_set_sensitive (dlg->check_word_button, FALSE);
        gtk_widget_set_sensitive (dlg->ignore_button, FALSE);
diff --git a/plugins/spell/gedit-spell-checker-dialog.h b/plugins/spell/gedit-spell-checker-dialog.h
index bfb60b7..d610400 100644
--- a/plugins/spell/gedit-spell-checker-dialog.h
+++ b/plugins/spell/gedit-spell-checker-dialog.h
@@ -3,7 +3,7 @@
  * gedit-spell-checker-dialog.h
  * This file is part of gedit
  *
- * Copyright (C) 2002 Paolo Maggi 
+ * Copyright (C) 2002 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2002. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifndef __GEDIT_SPELL_CHECKER_DIALOG_H__
@@ -47,7 +47,7 @@ typedef struct _GeditSpellCheckerDialog GeditSpellCheckerDialog;
 
 typedef struct _GeditSpellCheckerDialogClass GeditSpellCheckerDialogClass;
 
-struct _GeditSpellCheckerDialogClass 
+struct _GeditSpellCheckerDialogClass
 {
        GtkWindowClass parent_class;
 
@@ -57,10 +57,10 @@ struct _GeditSpellCheckerDialogClass
        void            (*ignore_all)           (GeditSpellCheckerDialog *dlg,
                                                 const gchar *word);
        void            (*change)               (GeditSpellCheckerDialog *dlg,
-                                                const gchar *word, 
+                                                const gchar *word,
                                                 const gchar *change_to);
        void            (*change_all)           (GeditSpellCheckerDialog *dlg,
-                                                const gchar *word, 
+                                                const gchar *word,
                                                 const gchar *change_to);
        void            (*add_word_to_personal) (GeditSpellCheckerDialog *dlg,
                                                 const gchar *word);
@@ -71,21 +71,21 @@ GType                        gedit_spell_checker_dialog_get_type    (void) G_GNUC_CONST;
 
 /* Constructors */
 GtkWidget              *gedit_spell_checker_dialog_new         (const gchar *data_dir);
-GtkWidget              *gedit_spell_checker_dialog_new_from_spell_checker 
+GtkWidget              *gedit_spell_checker_dialog_new_from_spell_checker
                                                                (GeditSpellChecker *spell,
                                                                 const gchar *data_dir);
 
 void                    gedit_spell_checker_dialog_set_spell_checker
                                                                (GeditSpellCheckerDialog *dlg,
                                                                 GeditSpellChecker *spell);
-void                    gedit_spell_checker_dialog_set_misspelled_word 
-                                                               (GeditSpellCheckerDialog *dlg, 
-                                                                const gchar* word, 
+void                    gedit_spell_checker_dialog_set_misspelled_word
+                                                               (GeditSpellCheckerDialog *dlg,
+                                                                const gchar* word,
                                                                 gint len);
 
-void                    gedit_spell_checker_dialog_set_completed 
+void                    gedit_spell_checker_dialog_set_completed
                                                                (GeditSpellCheckerDialog *dlg);
-                                                               
+
 G_END_DECLS
 
 #endif  /* __GEDIT_SPELL_CHECKER_DIALOG_H__ */
diff --git a/plugins/spell/gedit-spell-checker-language.c b/plugins/spell/gedit-spell-checker-language.c
index 5a940e6..fe3ec8e 100644
--- a/plugins/spell/gedit-spell-checker-language.c
+++ b/plugins/spell/gedit-spell-checker-language.c
@@ -3,7 +3,7 @@
  * gedit-spell-checker-language.c
  * This file is part of gedit
  *
- * Copyright (C) 2006 Paolo Maggi 
+ * Copyright (C) 2006 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2006. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2006. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 /* Part of the code taked from Epiphany.
@@ -54,7 +54,7 @@
 #define ISO_639_DOMAIN "iso_639"
 #define ISO_3166_DOMAIN        "iso_3166"
 
-struct _GeditSpellCheckerLanguage 
+struct _GeditSpellCheckerLanguage
 {
        gchar *abrev;
        gchar *name;
@@ -219,7 +219,7 @@ read_iso_3166_entry (xmlTextReaderPtr reader,
                xmlFree (code);
 
                /* g_print ("%s -> %s\n", lcode, name); */
-               
+
                g_hash_table_insert (table, lcode, name);
        }
        else
@@ -335,7 +335,7 @@ create_iso_3166_table (void)
        table = g_hash_table_new_full (g_str_hash, g_str_equal,
                                       (GDestroyNotify) g_free,
                                       (GDestroyNotify) xmlFree);
-       
+
        load_iso_entries (3166, (GFunc) read_iso_3166_entry, table);
 
        return table;
@@ -351,7 +351,7 @@ create_name_for_language (const char *code)
 
        g_return_val_if_fail (iso_639_table != NULL, NULL);
        g_return_val_if_fail (iso_3166_table != NULL, NULL);
-               
+
        str = g_strsplit (code, "_", -1);
        len = g_strv_length (str);
        g_return_val_if_fail (len != 0, NULL);
@@ -365,10 +365,10 @@ create_name_for_language (const char *code)
        else if (len == 2 && langname != NULL)
        {
                gchar *locale_code = g_ascii_strdown (str[1], -1);
-               
+
                localename = (const char *) g_hash_table_lookup (iso_3166_table, locale_code);
                g_free (locale_code);
-               
+
                if (localename != NULL)
                {
                        /* Translators: the first %s is the language name, and
@@ -406,14 +406,14 @@ enumerate_dicts (const char * const lang_tag,
                 void * user_data)
 {
        gchar *lang_name;
-       
+
        GTree *dicts = (GTree *)user_data;
-       
+
        lang_name = create_name_for_language (lang_tag);
        g_return_if_fail (lang_name != NULL);
-       
+
        /* g_print ("%s - %s\n", lang_tag, lang_name); */
-       
+
        g_tree_replace (dicts, g_strdup (lang_tag), lang_name);
 }
 
@@ -431,15 +431,15 @@ lang_cmp (const GeditSpellCheckerLanguage *a,
 }
 
 static gboolean
-build_langs_list (const gchar *key, 
-                 const gchar *value, 
+build_langs_list (const gchar *key,
+                 const gchar *value,
                  gpointer     data)
 {
        GeditSpellCheckerLanguage *lang = g_new (GeditSpellCheckerLanguage, 1);
-       
+
        lang->abrev = g_strdup (key);
        lang->name = g_strdup (value);
-       
+
        available_languages = g_slist_insert_sorted (available_languages,
                                                     lang,
                                                     (GCompareFunc)lang_cmp);
@@ -457,12 +457,12 @@ gedit_spell_checker_get_available_languages (void)
                return available_languages;
 
        g_return_val_if_fail (available_languages == NULL, NULL);
-                       
+
        available_languages_initialized = TRUE;
-       
+
        broker = enchant_broker_init ();
        g_return_val_if_fail (broker != NULL, NULL);
-       
+
        /* Use a GTree to efficiently remove duplicates while building the list */
        dicts = g_tree_new_full (key_cmp,
                                 NULL,
@@ -471,21 +471,21 @@ gedit_spell_checker_get_available_languages (void)
 
        iso_639_table = create_iso_639_table ();
        iso_3166_table = create_iso_3166_table ();
-       
+
        enchant_broker_list_dicts (broker, enumerate_dicts, dicts);
 
        enchant_broker_free (broker);
-       
+
        g_hash_table_destroy (iso_639_table);
        g_hash_table_destroy (iso_3166_table);
-       
+
        iso_639_table = NULL;
        iso_3166_table = NULL;
-       
+
        g_tree_foreach (dicts, (GTraverseFunc)build_langs_list, NULL);
-       
+
        g_tree_destroy (dicts);
-       
+
        return available_languages;
 }
 
@@ -505,7 +505,7 @@ const gchar *
 gedit_spell_checker_language_to_key (const GeditSpellCheckerLanguage *lang)
 {
        g_return_val_if_fail (lang != NULL, NULL);
-       
+
        return lang->abrev;
 }
 
diff --git a/plugins/spell/gedit-spell-checker-language.h b/plugins/spell/gedit-spell-checker-language.h
index 030fe1e..b704f7a 100644
--- a/plugins/spell/gedit-spell-checker-language.h
+++ b/plugins/spell/gedit-spell-checker-language.h
@@ -3,7 +3,7 @@
  * gedit-spell-checker-language.h
  * This file is part of gedit
  *
- * Copyright (C) 2006 Paolo Maggi 
+ * Copyright (C) 2006 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2006. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2006. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifndef __GEDIT_SPELL_CHECKER_LANGUAGE_H__
diff --git a/plugins/spell/gedit-spell-checker.c b/plugins/spell/gedit-spell-checker.c
index 9f3e4e3..ad9407c 100644
--- a/plugins/spell/gedit-spell-checker.c
+++ b/plugins/spell/gedit-spell-checker.c
@@ -260,7 +260,7 @@ lazy_init (GeditSpellChecker               *spell,
                gchar *key;
 
                key = gedit_spell_osx_get_preferred_spell_language ();
-               
+
                if (key)
                {
                        spell->active_lang = gedit_spell_checker_language_from_key (key);
diff --git a/plugins/spell/gedit-spell-language-dialog.c b/plugins/spell/gedit-spell-language-dialog.c
index 6150c97..9c200ee 100644
--- a/plugins/spell/gedit-spell-language-dialog.c
+++ b/plugins/spell/gedit-spell-language-dialog.c
@@ -3,7 +3,7 @@
  * gedit-spell-language-dialog.c
  * This file is part of gedit
  *
- * Copyright (C) 2002 Paolo Maggi 
+ * Copyright (C) 2002 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2002. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -47,7 +47,7 @@ enum
 };
 
 
-struct _GeditSpellLanguageDialog 
+struct _GeditSpellLanguageDialog
 {
        GtkDialog dialog;
 
@@ -58,7 +58,7 @@ struct _GeditSpellLanguageDialog
 G_DEFINE_TYPE(GeditSpellLanguageDialog, gedit_spell_language_dialog, GTK_TYPE_DIALOG)
 
 
-static void 
+static void
 gedit_spell_language_dialog_class_init (GeditSpellLanguageDialogClass *klass)
 {
        /* GObjectClass *object_class = G_OBJECT_CLASS (klass); */
@@ -79,7 +79,7 @@ dialog_response_handler (GtkDialog *dlg,
        }
 }
 
-static void 
+static void
 scroll_to_selected (GtkTreeView *tree_view)
 {
        GtkTreeModel *model;
@@ -127,7 +127,7 @@ create_dialog (GeditSpellLanguageDialog *dlg,
                "content",
                NULL
        };
-       
+
        gtk_dialog_add_buttons (GTK_DIALOG (dlg),
                                GTK_STOCK_CANCEL,
                                GTK_RESPONSE_CANCEL,
@@ -180,11 +180,11 @@ create_dialog (GeditSpellLanguageDialog *dlg,
        /* Add the encoding column */
        cell = gtk_cell_renderer_text_new ();
        column = gtk_tree_view_column_new_with_attributes (_("Languages"),
-                                                          cell, 
+                                                          cell,
                                                           "text",
                                                           COLUMN_LANGUAGE_NAME,
                                                           NULL);
-       
+
        gtk_tree_view_append_column (GTK_TREE_VIEW (dlg->languages_treeview),
                                     column);
 
@@ -196,7 +196,7 @@ create_dialog (GeditSpellLanguageDialog *dlg,
                          G_CALLBACK (scroll_to_selected),
                          dlg);
        g_signal_connect (dlg->languages_treeview,
-                         "row-activated", 
+                         "row-activated",
                          G_CALLBACK (language_row_activated),
                          dlg);
 }
@@ -204,7 +204,7 @@ create_dialog (GeditSpellLanguageDialog *dlg,
 static void
 gedit_spell_language_dialog_init (GeditSpellLanguageDialog *dlg)
 {
-       
+
 }
 
 static void
@@ -263,7 +263,7 @@ gedit_spell_language_dialog_new (GtkWindow                       *parent,
        populate_language_list (dlg, cur_lang);
 
        gtk_window_set_transient_for (GTK_WINDOW (dlg), parent);
-       gtk_widget_grab_focus (dlg->languages_treeview);                                             
+       gtk_widget_grab_focus (dlg->languages_treeview);
 
        return GTK_WIDGET (dlg);
 }
diff --git a/plugins/spell/gedit-spell-language-dialog.h b/plugins/spell/gedit-spell-language-dialog.h
index 4b36a9c..73683c7 100644
--- a/plugins/spell/gedit-spell-language-dialog.h
+++ b/plugins/spell/gedit-spell-language-dialog.h
@@ -3,7 +3,7 @@
  * gedit-spell-language-dialog.h
  * This file is part of gedit
  *
- * Copyright (C) 2002 Paolo Maggi 
+ * Copyright (C) 2002 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
@@ -17,14 +17,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, 
- * Boston, MA 02111-1307, USA. 
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
- 
+
 /*
- * Modified by the gedit Team, 2002. See the AUTHORS file for a 
- * list of people on the gedit Team.  
- * See the ChangeLog files for a list of changes. 
+ * Modified by the gedit Team, 2002. See the AUTHORS file for a
+ * list of people on the gedit Team.
+ * See the ChangeLog files for a list of changes.
  */
 
 #ifndef __GEDIT_SPELL_LANGUAGE_DIALOG_H__
@@ -47,7 +47,7 @@ typedef struct _GeditSpellLanguageDialog GeditSpellLanguageDialog;
 
 typedef struct _GeditSpellLanguageDialogClass GeditSpellLanguageDialogClass;
 
-struct _GeditSpellLanguageDialogClass 
+struct _GeditSpellLanguageDialogClass
 {
        GtkDialogClass parent_class;
 };
diff --git a/plugins/spell/gedit-spell-osx.c b/plugins/spell/gedit-spell-osx.c
index 2c322d7..502be0a 100644
--- a/plugins/spell/gedit-spell-osx.c
+++ b/plugins/spell/gedit-spell-osx.c
@@ -6,7 +6,7 @@ gedit_spell_osx_get_preferred_spell_language ()
 {
        gchar *ret = NULL;
        NSAutoreleasePool *pool;
-       
+
        pool = [[NSAutoreleasePool alloc] init];
 
 #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5
diff --git a/plugins/spell/gedit-spell-plugin.c b/plugins/spell/gedit-spell-plugin.c
index 89ba0b4..4aa68d2 100644
--- a/plugins/spell/gedit-spell-plugin.c
+++ b/plugins/spell/gedit-spell-plugin.c
@@ -1,13 +1,13 @@
 /*
  * gedit-spell-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
@@ -197,7 +197,7 @@ gedit_spell_plugin_get_property (GObject    *object,
        }
 }
 
-static void 
+static void
 set_spell_language_cb (GeditSpellChecker   *spell,
                       const GeditSpellCheckerLanguage *lang,
                       GeditDocument       *doc)
@@ -255,9 +255,9 @@ get_spell_checker_from_document (GeditDocument *doc)
 
                set_language_from_metadata (spell, doc);
 
-               g_object_set_qdata_full (G_OBJECT (doc), 
-                                        spell_checker_id, 
-                                        spell, 
+               g_object_set_qdata_full (G_OBJECT (doc),
+                                        spell_checker_id,
+                                        spell,
                                         (GDestroyNotify) g_object_unref);
 
                g_signal_connect (spell,
@@ -304,24 +304,24 @@ update_current (GeditDocument *doc,
        range = get_check_range (doc);
        g_return_if_fail (range != NULL);
 
-       gtk_text_buffer_get_iter_at_offset (GTK_TEXT_BUFFER (doc), 
+       gtk_text_buffer_get_iter_at_offset (GTK_TEXT_BUFFER (doc),
                                            &iter, current);
 
        if (!gtk_text_iter_inside_word (&iter))
-       {       
+       {
                /* if we're not inside a word,
                 * we must be in some spaces.
                 * skip forward to the beginning of the next word. */
                if (!gtk_text_iter_is_end (&iter))
                {
                        gtk_text_iter_forward_word_end (&iter);
-                       gtk_text_iter_backward_word_start (&iter);      
+                       gtk_text_iter_backward_word_start (&iter);
                }
        }
        else
        {
                if (!gtk_text_iter_starts_word (&iter))
-                       gtk_text_iter_backward_word_start (&iter);      
+                       gtk_text_iter_backward_word_start (&iter);
        }
 
        gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc),
@@ -329,7 +329,7 @@ update_current (GeditDocument *doc,
                                          range->end_mark);
 
        if (gtk_text_iter_compare (&end_iter, &iter) < 0)
-       {       
+       {
                gtk_text_buffer_move_mark (GTK_TEXT_BUFFER (doc),
                                           range->current_mark,
                                           &end_iter);
@@ -371,9 +371,9 @@ set_check_range (GeditDocument *doc,
                range->current_mark = gtk_text_buffer_create_mark (GTK_TEXT_BUFFER (doc),
                                "check_range_current_mark", &iter, TRUE);
 
-               g_object_set_qdata_full (G_OBJECT (doc), 
-                                check_range_id, 
-                                range, 
+               g_object_set_qdata_full (G_OBJECT (doc),
+                                check_range_id,
+                                range,
                                 (GDestroyNotify)g_free);
        }
 
@@ -432,12 +432,12 @@ get_current_word (GeditDocument *doc, gint *start, gint *end)
        range = get_check_range (doc);
        g_return_val_if_fail (range != NULL, NULL);
 
-       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc), 
+       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc),
                        &end_iter, range->end_mark);
 
        range_end = gtk_text_iter_get_offset (&end_iter);
 
-       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc), 
+       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc),
                        &current_iter, range->current_mark);
 
        end_iter = current_iter;
@@ -478,7 +478,7 @@ goto_next_word (GeditDocument *doc)
        range = get_check_range (doc);
        g_return_val_if_fail (range != NULL, FALSE);
 
-       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc), 
+       gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (doc),
                                          &current_iter,
                                          range->current_mark);
        gtk_text_buffer_get_end_iter (GTK_TEXT_BUFFER (doc), &end_iter);
@@ -584,7 +584,7 @@ ignore_cb (GeditSpellCheckerDialog *dlg,
        if (word == NULL)
        {
                gedit_spell_checker_dialog_set_completed (dlg);
-               
+
                return;
        }
 
@@ -990,7 +990,7 @@ set_auto_spell_from_metadata (GeditWindow    *window,
        if (active_str)
        {
                active = *active_str == '1';
-       
+
                g_free (active_str);
        }
 
@@ -1002,7 +1002,7 @@ set_auto_spell_from_metadata (GeditWindow    *window,
        if (active_doc == doc && action_group != NULL)
        {
                GtkAction *action;
-               
+
                action = gtk_action_group_get_action (action_group,
                                                      "AutoSpell");
 
@@ -1107,7 +1107,7 @@ tab_removed_cb (GeditWindow      *window,
 
        doc = gedit_tab_get_document (tab);
        g_object_set_data (G_OBJECT (doc), GEDIT_AUTOMATIC_SPELL_VIEW, NULL);
-       
+
        g_signal_handlers_disconnect_by_func (doc, on_document_loaded, plugin);
        g_signal_handlers_disconnect_by_func (doc, on_document_saved, plugin);
 }
diff --git a/plugins/spell/gedit-spell-plugin.h b/plugins/spell/gedit-spell-plugin.h
index 5dfc2e2..399d5d8 100644
--- a/plugins/spell/gedit-spell-plugin.h
+++ b/plugins/spell/gedit-spell-plugin.h
@@ -1,7 +1,7 @@
 /*
  * gedit-spell-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
diff --git a/plugins/spell/gedit-spell-utils.c b/plugins/spell/gedit-spell-utils.c
index 6bcebf8..a2f7525 100644
--- a/plugins/spell/gedit-spell-utils.c
+++ b/plugins/spell/gedit-spell-utils.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
diff --git a/plugins/spell/gedit-spell-utils.h b/plugins/spell/gedit-spell-utils.h
index 6af93c2..5ac3632 100644
--- a/plugins/spell/gedit-spell-utils.h
+++ b/plugins/spell/gedit-spell-utils.h
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
diff --git a/plugins/time/gedit-time-plugin.c b/plugins/time/gedit-time-plugin.c
index 0773728..4b1f2cd 100644
--- a/plugins/time/gedit-time-plugin.c
+++ b/plugins/time/gedit-time-plugin.c
@@ -666,7 +666,7 @@ get_configure_widget (GeditTimePlugin *plugin)
                "time_dialog_content",
                NULL
        };
-       
+
        gedit_debug (DEBUG_PLUGINS);
 
        widget = g_slice_new (TimeConfigureWidget);
@@ -810,7 +810,7 @@ get_choose_format_dialog (GtkWindow                 *parent,
        GtkBuilder *builder;
        gchar *sf, *cf;
        GtkWindowGroup *wg = NULL;
-       
+
        if (parent != NULL)
                wg = gtk_window_get_group (parent);
 
diff --git a/plugins/time/gedit-time-plugin.h b/plugins/time/gedit-time-plugin.h
index daf0cfb..ac9d0d7 100644
--- a/plugins/time/gedit-time-plugin.h
+++ b/plugins/time/gedit-time-plugin.h
@@ -1,6 +1,6 @@
 /*
  * gedit-time-plugin.h
- * 
+ *
  * Copyright (C) 2002-2005 - Paolo Maggi
  *
  * This program is free software; you can redistribute it and/or modify
diff --git a/tests/document-input-stream.c b/tests/document-input-stream.c
index abc6354..5809977 100644
--- a/tests/document-input-stream.c
+++ b/tests/document-input-stream.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
diff --git a/tests/document-loader.c b/tests/document-loader.c
index c1f9281..ee01653 100644
--- a/tests/document-loader.c
+++ b/tests/document-loader.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
diff --git a/tests/document-output-stream.c b/tests/document-output-stream.c
index ee86d91..f1d5730 100644
--- a/tests/document-output-stream.c
+++ b/tests/document-output-stream.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
diff --git a/tests/document-saver.c b/tests/document-saver.c
index 3304eeb..1d17084 100644
--- a/tests/document-saver.c
+++ b/tests/document-saver.c
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with gedit; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA  02110-1301  USA
  */
 
@@ -29,7 +29,7 @@
 
 /* linux/bsd has it. others such as Solaris, do not */
 #ifndef ACCESSPERMS
-#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) 
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
 #endif
 
 #define DEFAULT_LOCAL_URI "/tmp/gedit-document-saver-test.txt"
@@ -721,7 +721,7 @@ int main (int   argc,
 
        g_test_add_func ("/document-saver/remote", test_remote);
        g_test_add_func ("/document-saver/remote-new-line", test_remote_newline);
-       
+
 
        if (have_unowned)
        {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]