summaryrefslogtreecommitdiff
path: root/pluma/dialogs
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 10:29:13 +0200
committerZenWalker <[email protected]>2019-07-06 21:46:58 +0200
commitdb655f3fb2f67b695d36369e584fcb598e0e1bea (patch)
treeff7a4404cb6f0d1d8ca3a08ee50c60641641f1b4 /pluma/dialogs
parent5153fb08a2e26015d07e7b3805de15d38bd05a9d (diff)
downloadpluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.bz2
pluma-db655f3fb2f67b695d36369e584fcb598e0e1bea.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'pluma/dialogs')
-rw-r--r--pluma/dialogs/pluma-close-confirmation-dialog.c122
-rw-r--r--pluma/dialogs/pluma-close-confirmation-dialog.h16
-rw-r--r--pluma/dialogs/pluma-encodings-dialog.c30
-rw-r--r--pluma/dialogs/pluma-encodings-dialog.h16
-rw-r--r--pluma/dialogs/pluma-preferences-dialog.c214
-rw-r--r--pluma/dialogs/pluma-preferences-dialog.h18
-rw-r--r--pluma/dialogs/pluma-search-dialog.c48
-rw-r--r--pluma/dialogs/pluma-search-dialog.h18
8 files changed, 241 insertions, 241 deletions
diff --git a/pluma/dialogs/pluma-close-confirmation-dialog.c b/pluma/dialogs/pluma-close-confirmation-dialog.c
index d1d9aed3..8c48c631 100644
--- a/pluma/dialogs/pluma-close-confirmation-dialog.c
+++ b/pluma/dialogs/pluma-close-confirmation-dialog.c
@@ -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., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
/*
- * Modified by the pluma Team, 2004-2005. See the AUTHORS file for a
- * list of people on the pluma Team.
+ * Modified by the pluma Team, 2004-2005. See the AUTHORS file for a
+ * list of people on the pluma Team.
* See the ChangeLog files for a list of changes.
*
* $Id$
@@ -41,9 +41,9 @@
/* Properties */
-enum
+enum
{
- PROP_0,
+ PROP_0,
PROP_UNSAVED_DOCUMENTS,
PROP_LOGOUT_MODE
};
@@ -64,16 +64,16 @@ enum
N_COLUMNS
};
-struct _PlumaCloseConfirmationDialogPrivate
+struct _PlumaCloseConfirmationDialogPrivate
{
gboolean logout_mode;
GList *unsaved_documents;
-
+
GList *selected_documents;
GtkTreeModel *list_store;
-
+
gboolean disable_save_to_disk;
};
@@ -92,7 +92,7 @@ static void set_unsaved_document (PlumaCloseConfirmationDialog *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
@@ -105,7 +105,7 @@ response_cb (PlumaCloseConfirmationDialog *dlg,
g_return_if_fail (PLUMA_IS_CLOSE_CONFIRMATION_DIALOG (dlg));
priv = dlg->priv;
-
+
if (priv->selected_documents != NULL)
g_list_free (priv->selected_documents);
@@ -113,7 +113,7 @@ response_cb (PlumaCloseConfirmationDialog *dlg,
{
if (GET_MODE (priv) == SINGLE_DOC_MODE)
{
- priv->selected_documents =
+ priv->selected_documents =
g_list_copy (priv->unsaved_documents);
}
else
@@ -133,7 +133,7 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,
gboolean logout_mode)
{
dlg->priv->logout_mode = logout_mode;
-
+
if (logout_mode)
{
gtk_dialog_add_button (GTK_DIALOG (dlg),
@@ -156,7 +156,7 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,
"process-stop",
GTK_RESPONSE_CANCEL);
}
-
+
if (dlg->priv->disable_save_to_disk)
{
gtk_dialog_set_default_response (GTK_DIALOG (dlg),
@@ -165,14 +165,14 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,
else
{
const gchar *icon_id = "document-save";
-
+
if (GET_MODE (dlg->priv) == SINGLE_DOC_MODE)
{
PlumaDocument *doc;
-
+
doc = PLUMA_DOCUMENT (dlg->priv->unsaved_documents->data);
-
- if (pluma_document_get_readonly (doc) ||
+
+ if (pluma_document_get_readonly (doc) ||
pluma_document_is_untitled (doc))
icon_id = "document-save-as";
}
@@ -188,28 +188,28 @@ set_logout_mode (PlumaCloseConfirmationDialog *dlg,
icon_id,
GTK_RESPONSE_YES);
- gtk_dialog_set_default_response (GTK_DIALOG (dlg),
+ gtk_dialog_set_default_response (GTK_DIALOG (dlg),
GTK_RESPONSE_YES);
}
}
-static void
+static void
pluma_close_confirmation_dialog_init (PlumaCloseConfirmationDialog *dlg)
{
AtkObject *atk_obj;
dlg->priv = PLUMA_CLOSE_CONFIRMATION_DIALOG_GET_PRIVATE (dlg);
- dlg->priv->disable_save_to_disk =
- pluma_app_get_lockdown (pluma_app_get_default ())
+ dlg->priv->disable_save_to_disk =
+ pluma_app_get_lockdown (pluma_app_get_default ())
& PLUMA_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);
@@ -218,14 +218,14 @@ pluma_close_confirmation_dialog_init (PlumaCloseConfirmationDialog *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
pluma_close_confirmation_dialog_finalize (GObject *object)
{
PlumaCloseConfirmationDialogPrivate *priv;
@@ -243,9 +243,9 @@ pluma_close_confirmation_dialog_finalize (GObject *object)
}
static void
-pluma_close_confirmation_dialog_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
+pluma_close_confirmation_dialog_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
GParamSpec *pspec)
{
PlumaCloseConfirmationDialog *dlg;
@@ -257,7 +257,7 @@ pluma_close_confirmation_dialog_set_property (GObject *object,
case PROP_UNSAVED_DOCUMENTS:
set_unsaved_document (dlg, g_value_get_pointer (value));
break;
-
+
case PROP_LOGOUT_MODE:
set_logout_mode (dlg, g_value_get_boolean (value));
break;
@@ -269,9 +269,9 @@ pluma_close_confirmation_dialog_set_property (GObject *object,
}
static void
-pluma_close_confirmation_dialog_get_property (GObject *object,
- guint prop_id,
- GValue *value,
+pluma_close_confirmation_dialog_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
GParamSpec *pspec)
{
PlumaCloseConfirmationDialogPrivate *priv;
@@ -294,7 +294,7 @@ pluma_close_confirmation_dialog_get_property (GObject *object,
}
}
-static void
+static void
pluma_close_confirmation_dialog_class_init (PlumaCloseConfirmationDialogClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
@@ -310,7 +310,7 @@ pluma_close_confirmation_dialog_class_init (PlumaCloseConfirmationDialogClass *k
g_param_spec_pointer ("unsaved_documents",
"Unsaved Documents",
"List of Unsaved Documents",
- (G_PARAM_READWRITE |
+ (G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY)));
g_object_class_install_property (gobject_class,
@@ -319,8 +319,8 @@ pluma_close_confirmation_dialog_class_init (PlumaCloseConfirmationDialogClass *k
"Logout Mode",
"Whether the dialog is in logout mode",
FALSE,
- (G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY)));
+ (G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY)));
}
static GList *
@@ -338,7 +338,7 @@ get_selected_docs (GtkTreeModel *store)
gboolean to_save;
PlumaDocument *doc;
- gtk_tree_model_get (store, &iter,
+ gtk_tree_model_get (store, &iter,
SAVE_COLUMN, &to_save,
DOC_COLUMN, &doc,
-1);
@@ -362,7 +362,7 @@ pluma_close_confirmation_dialog_get_selected_documents (PlumaCloseConfirmationDi
}
GtkWidget *
-pluma_close_confirmation_dialog_new (GtkWindow *parent,
+pluma_close_confirmation_dialog_new (GtkWindow *parent,
GList *unsaved_documents,
gboolean logout_mode)
{
@@ -379,28 +379,28 @@ pluma_close_confirmation_dialog_new (GtkWindow *parent,
{
gtk_window_group_add_window (pluma_window_get_group (PLUMA_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 *
-pluma_close_confirmation_dialog_new_single (GtkWindow *parent,
+pluma_close_confirmation_dialog_new_single (GtkWindow *parent,
PlumaDocument *doc,
gboolean logout_mode)
{
GtkWidget *dlg;
GList *unsaved_documents;
g_return_val_if_fail (doc != NULL, NULL);
-
+
unsaved_documents = g_list_prepend (NULL, doc);
- dlg = pluma_close_confirmation_dialog_new (parent,
+ dlg = pluma_close_confirmation_dialog_new (parent,
unsaved_documents,
logout_mode);
-
+
g_list_free (unsaved_documents);
return dlg;
@@ -411,10 +411,10 @@ get_text_secondary_label (PlumaDocument *doc)
{
glong seconds;
gchar *secondary_msg;
-
+
seconds = MAX (1, _pluma_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 "
@@ -543,7 +543,7 @@ build_single_doc_dialog (PlumaCloseConfirmationDialog *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);
@@ -560,17 +560,17 @@ build_single_doc_dialog (PlumaCloseConfirmationDialog *dlg)
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
-
+
gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0);
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);
@@ -643,7 +643,7 @@ create_treeview (PlumaCloseConfirmationDialogPrivate *priv)
g_object_unref (store);
priv->list_store = GTK_TREE_MODEL (store);
-
+
/* Add columns */
if (!priv->disable_save_to_disk)
{
@@ -734,11 +734,11 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *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);
@@ -757,10 +757,10 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg)
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_propagate_natural_height (GTK_SCROLLED_WINDOW (scrolledwindow), TRUE);
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);
@@ -807,7 +807,7 @@ set_unsaved_document (PlumaCloseConfirmationDialog *dlg,
{
PlumaCloseConfirmationDialogPrivate *priv;
- g_return_if_fail (list != NULL);
+ g_return_if_fail (list != NULL);
priv = dlg->priv;
g_return_if_fail (priv->unsaved_documents == NULL);
@@ -821,7 +821,7 @@ set_unsaved_document (PlumaCloseConfirmationDialog *dlg,
else
{
build_multiple_docs_dialog (dlg);
- }
+ }
}
const GList *
diff --git a/pluma/dialogs/pluma-close-confirmation-dialog.h b/pluma/dialogs/pluma-close-confirmation-dialog.h
index 85d4dc4e..47b29346 100644
--- a/pluma/dialogs/pluma-close-confirmation-dialog.h
+++ b/pluma/dialogs/pluma-close-confirmation-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., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
/*
- * Modified by the pluma Team, 2004-2005. See the AUTHORS file for a
- * list of people on the pluma Team.
- * See the ChangeLog files for a list of changes.
+ * Modified by the pluma Team, 2004-2005. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
*/
#ifndef __PLUMA_CLOSE_CONFIRMATION_DIALOG_H__
@@ -45,7 +45,7 @@ typedef struct _PlumaCloseConfirmationDialog PlumaCloseConfirmationDialog;
typedef struct _PlumaCloseConfirmationDialogClass PlumaCloseConfirmationDialogClass;
typedef struct _PlumaCloseConfirmationDialogPrivate PlumaCloseConfirmationDialogPrivate;
-struct _PlumaCloseConfirmationDialog
+struct _PlumaCloseConfirmationDialog
{
GtkDialog parent;
@@ -53,7 +53,7 @@ struct _PlumaCloseConfirmationDialog
PlumaCloseConfirmationDialogPrivate *priv;
};
-struct _PlumaCloseConfirmationDialogClass
+struct _PlumaCloseConfirmationDialogClass
{
GtkDialogClass parent_class;
};
@@ -63,7 +63,7 @@ GType pluma_close_confirmation_dialog_get_type (void) G_GNUC_CONST;
GtkWidget *pluma_close_confirmation_dialog_new (GtkWindow *parent,
GList *unsaved_documents,
gboolean logout_mode);
-GtkWidget *pluma_close_confirmation_dialog_new_single (GtkWindow *parent,
+GtkWidget *pluma_close_confirmation_dialog_new_single (GtkWindow *parent,
PlumaDocument *doc,
gboolean logout_mode);
diff --git a/pluma/dialogs/pluma-encodings-dialog.c b/pluma/dialogs/pluma-encodings-dialog.c
index cc94178b..3845a1b2 100644
--- a/pluma/dialogs/pluma-encodings-dialog.c
+++ b/pluma/dialogs/pluma-encodings-dialog.c
@@ -2,7 +2,7 @@
* pluma-encodings-dialog.c
* This file is part of pluma
*
- * 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., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
/*
- * Modified by the pluma Team, 2002-2005. See the AUTHORS file for a
- * list of people on the pluma Team.
- * See the ChangeLog files for a list of changes.
+ * Modified by the pluma Team, 2002-2005. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
*
* $Id$
*/
@@ -93,7 +93,7 @@ enum {
static void
count_selected_items_func (GtkTreeModel *model,
GtkTreePath *path,
- GtkTreeIter *iter,
+ GtkTreeIter *iter,
gpointer data)
{
int *count = data;
@@ -132,7 +132,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;
@@ -220,7 +220,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);
@@ -269,7 +269,7 @@ init_shown_in_menu_tree_model (PlumaEncodingsDialog *dialog)
g_slist_free (list);
}
-static void
+static void
response_handler (GtkDialog *dialog,
gint response_id,
PlumaEncodingsDialog *dlg)
@@ -308,14 +308,14 @@ pluma_encodings_dialog_init (PlumaEncodingsDialog *dlg)
};
dlg->priv = PLUMA_ENCODINGS_DIALOG_GET_PRIVATE (dlg);
-
+
pluma_dialog_add_button (GTK_DIALOG (dlg), _("_Cancel"), "process-stop", GTK_RESPONSE_CANCEL);
pluma_dialog_add_button (GTK_DIALOG (dlg), _("_OK"), "gtk-ok", GTK_RESPONSE_OK);
pluma_dialog_add_button (GTK_DIALOG (dlg), _("_Help"), "help-browser", GTK_RESPONSE_HELP);
gtk_window_set_title (GTK_WINDOW (dlg), _("Character Encodings"));
gtk_window_set_default_size (GTK_WINDOW (dlg), 650, 400);
-
+
/* 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))),
@@ -348,7 +348,7 @@ pluma_encodings_dialog_init (PlumaEncodingsDialog *dlg)
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))),
error_widget,
TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (error_widget), 5);
+ gtk_container_set_border_width (GTK_CONTAINER (error_widget), 5);
return;
}
@@ -356,7 +356,7 @@ pluma_encodings_dialog_init (PlumaEncodingsDialog *dlg)
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))),
content, TRUE, TRUE, 0);
g_object_unref (content);
- gtk_container_set_border_width (GTK_CONTAINER (content), 5);
+ gtk_container_set_border_width (GTK_CONTAINER (content), 5);
gtk_button_set_image (GTK_BUTTON (dlg->priv->add_button), gtk_image_new_from_icon_name ("list-add", GTK_ICON_SIZE_BUTTON));
gtk_button_set_image (GTK_BUTTON (dlg->priv->remove_button), gtk_image_new_from_icon_name ("list-remove", GTK_ICON_SIZE_BUTTON));
@@ -396,7 +396,7 @@ pluma_encodings_dialog_init (PlumaEncodingsDialog *dlg)
/* Add the data */
i = 0;
- while ((enc = pluma_encoding_get_from_index (i)) != NULL)
+ while ((enc = pluma_encoding_get_from_index (i)) != NULL)
{
gtk_list_store_append (dlg->priv->available_liststore,
&parent_iter);
diff --git a/pluma/dialogs/pluma-encodings-dialog.h b/pluma/dialogs/pluma-encodings-dialog.h
index f191fbc9..0b0bf183 100644
--- a/pluma/dialogs/pluma-encodings-dialog.h
+++ b/pluma/dialogs/pluma-encodings-dialog.h
@@ -2,7 +2,7 @@
* pluma-encodings-dialog.h
* This file is part of pluma
*
- * 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., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
/*
- * Modified by the pluma Team, 2003-2005. See the AUTHORS file for a
- * list of people on the pluma Team.
- * See the ChangeLog files for a list of changes.
+ * Modified by the pluma Team, 2003-2005. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
*
* $Id$
*/
@@ -55,7 +55,7 @@ typedef struct _PlumaEncodingsDialogPrivate PlumaEncodingsDialogPrivate;
*/
typedef struct _PlumaEncodingsDialog PlumaEncodingsDialog;
-struct _PlumaEncodingsDialog
+struct _PlumaEncodingsDialog
{
GtkDialog dialog;
@@ -68,7 +68,7 @@ struct _PlumaEncodingsDialog
*/
typedef struct _PlumaEncodingsDialogClass PlumaEncodingsDialogClass;
-struct _PlumaEncodingsDialogClass
+struct _PlumaEncodingsDialogClass
{
GtkDialogClass parent_class;
};
diff --git a/pluma/dialogs/pluma-preferences-dialog.c b/pluma/dialogs/pluma-preferences-dialog.c
index 771726a9..a2b575b1 100644
--- a/pluma/dialogs/pluma-preferences-dialog.c
+++ b/pluma/dialogs/pluma-preferences-dialog.c
@@ -3,7 +3,7 @@
* pluma-preferences-dialog.c
* This file is part of pluma
*
- * 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., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
/*
- * Modified by the pluma Team, 2001-2003. See the AUTHORS file for a
- * list of people on the pluma Team.
- * See the ChangeLog files for a list of changes.
+ * Modified by the pluma Team, 2001-2003. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
*
* $Id$
*/
@@ -96,7 +96,7 @@ struct _PlumaPreferencesDialogPrivate
GtkWidget *schemes_treeview;
GtkWidget *install_scheme_button;
GtkWidget *uninstall_scheme_button;
-
+
GtkWidget *install_scheme_file_schooser;
/* Tabs */
@@ -123,16 +123,16 @@ struct _PlumaPreferencesDialogPrivate
GtkWidget *auto_save_checkbutton;
GtkWidget *auto_save_spinbutton;
GtkWidget *autosave_hbox;
-
+
/* Line numbers */
GtkWidget *display_line_numbers_checkbutton;
/* Highlight current line */
GtkWidget *highlight_current_line_checkbutton;
-
+
/* Highlight matching bracket */
GtkWidget *bracket_matching_checkbutton;
-
+
/* Right margin */
GtkWidget *right_margin_checkbutton;
GtkWidget *right_margin_position_spinbutton;
@@ -149,7 +149,7 @@ struct _PlumaPreferencesDialogPrivate
G_DEFINE_TYPE(PlumaPreferencesDialog, pluma_preferences_dialog, GTK_TYPE_DIALOG)
-static void
+static void
pluma_preferences_dialog_class_init (PlumaPreferencesDialogClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -158,7 +158,7 @@ pluma_preferences_dialog_class_init (PlumaPreferencesDialogClass *klass)
}
static void
-dialog_response_handler (GtkDialog *dlg,
+dialog_response_handler (GtkDialog *dlg,
gint res_id)
{
pluma_debug (DEBUG_PREFS);
@@ -189,7 +189,7 @@ tabs_width_spinbutton_value_changed (GtkSpinButton *spin_button,
pluma_prefs_manager_set_tabs_size (gtk_spin_button_get_value_as_int (spin_button));
}
-
+
static void
insert_spaces_checkbutton_toggled (GtkToggleButton *button,
PlumaPreferencesDialog *dlg)
@@ -317,12 +317,12 @@ auto_save_checkbutton_toggled (GtkToggleButton *button,
if (gtk_toggle_button_get_active (button))
{
- gtk_widget_set_sensitive (dlg->priv->auto_save_spinbutton,
+ gtk_widget_set_sensitive (dlg->priv->auto_save_spinbutton,
pluma_prefs_manager_auto_save_interval_can_set());
pluma_prefs_manager_set_auto_save (TRUE);
}
- else
+ else
{
gtk_widget_set_sensitive (dlg->priv->auto_save_spinbutton, FALSE);
pluma_prefs_manager_set_auto_save (FALSE);
@@ -336,7 +336,7 @@ backup_copy_checkbutton_toggled (GtkToggleButton *button,
pluma_debug (DEBUG_PREFS);
g_return_if_fail (button == GTK_TOGGLE_BUTTON (dlg->priv->backup_copy_checkbutton));
-
+
pluma_prefs_manager_set_create_backup_copy (gtk_toggle_button_get_active (button));
}
@@ -410,7 +410,7 @@ setup_editor_page (PlumaPreferencesDialog *dlg)
auto_save_interval);
/* Set widget sensitivity */
- gtk_widget_set_sensitive (dlg->priv->tabs_width_hbox,
+ gtk_widget_set_sensitive (dlg->priv->tabs_width_hbox,
pluma_prefs_manager_tabs_size_can_set ());
gtk_widget_set_sensitive (dlg->priv->insert_spaces_checkbutton,
pluma_prefs_manager_insert_spaces_can_set ());
@@ -424,9 +424,9 @@ setup_editor_page (PlumaPreferencesDialog *dlg)
pluma_prefs_manager_draw_newlines_can_set ());
gtk_widget_set_sensitive (dlg->priv->backup_copy_checkbutton,
pluma_prefs_manager_create_backup_copy_can_set ());
- gtk_widget_set_sensitive (dlg->priv->autosave_hbox,
- pluma_prefs_manager_auto_save_can_set ());
- gtk_widget_set_sensitive (dlg->priv->auto_save_spinbutton,
+ gtk_widget_set_sensitive (dlg->priv->autosave_hbox,
+ pluma_prefs_manager_auto_save_can_set ());
+ gtk_widget_set_sensitive (dlg->priv->auto_save_spinbutton,
auto_save &&
pluma_prefs_manager_auto_save_interval_can_set ());
@@ -481,7 +481,7 @@ static void
display_line_numbers_checkbutton_toggled (GtkToggleButton *button,
PlumaPreferencesDialog *dlg)
{
- g_return_if_fail (button ==
+ g_return_if_fail (button ==
GTK_TOGGLE_BUTTON (dlg->priv->display_line_numbers_checkbutton));
pluma_prefs_manager_set_display_line_numbers (gtk_toggle_button_get_active (button));
@@ -491,7 +491,7 @@ static void
highlight_current_line_checkbutton_toggled (GtkToggleButton *button,
PlumaPreferencesDialog *dlg)
{
- g_return_if_fail (button ==
+ g_return_if_fail (button ==
GTK_TOGGLE_BUTTON (dlg->priv->highlight_current_line_checkbutton));
pluma_prefs_manager_set_highlight_current_line (gtk_toggle_button_get_active (button));
@@ -501,7 +501,7 @@ static void
bracket_matching_checkbutton_toggled (GtkToggleButton *button,
PlumaPreferencesDialog *dlg)
{
- g_return_if_fail (button ==
+ g_return_if_fail (button ==
GTK_TOGGLE_BUTTON (dlg->priv->bracket_matching_checkbutton));
pluma_prefs_manager_set_bracket_matching (
@@ -511,21 +511,21 @@ bracket_matching_checkbutton_toggled (GtkToggleButton *button,
static gboolean split_button_state = TRUE;
static void
-wrap_mode_checkbutton_toggled (GtkToggleButton *button,
+wrap_mode_checkbutton_toggled (GtkToggleButton *button,
PlumaPreferencesDialog *dlg)
{
if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dlg->priv->wrap_text_checkbutton)))
{
pluma_prefs_manager_set_wrap_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 (
@@ -535,13 +535,13 @@ wrap_mode_checkbutton_toggled (GtkToggleButton *button,
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dlg->priv->split_checkbutton)))
{
split_button_state = TRUE;
-
+
pluma_prefs_manager_set_wrap_mode (GTK_WRAP_WORD);
}
else
{
split_button_state = FALSE;
-
+
pluma_prefs_manager_set_wrap_mode (GTK_WRAP_CHAR);
}
}
@@ -552,24 +552,24 @@ right_margin_checkbutton_toggled (GtkToggleButton *button,
PlumaPreferencesDialog *dlg)
{
gboolean active;
-
+
g_return_if_fail (button == GTK_TOGGLE_BUTTON (dlg->priv->right_margin_checkbutton));
active = gtk_toggle_button_get_active (button);
-
+
pluma_prefs_manager_set_display_right_margin (active);
gtk_widget_set_sensitive (dlg->priv->right_margin_position_hbox,
- active &&
+ active &&
pluma_prefs_manager_right_margin_position_can_set ());
}
static void
-right_margin_position_spinbutton_value_changed (GtkSpinButton *spin_button,
+right_margin_position_spinbutton_value_changed (GtkSpinButton *spin_button,
PlumaPreferencesDialog *dlg)
{
gint value;
-
+
g_return_if_fail (spin_button == GTK_SPIN_BUTTON (dlg->priv->right_margin_position_spinbutton));
value = CLAMP (gtk_spin_button_get_value_as_int (spin_button), 1, 160);
@@ -585,14 +585,14 @@ setup_view_page (PlumaPreferencesDialog *dlg)
gboolean wrap_mode_can_set;
pluma_debug (DEBUG_PREFS);
-
+
/* Set initial state */
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dlg->priv->display_line_numbers_checkbutton),
pluma_prefs_manager_get_display_line_numbers ());
-
+
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dlg->priv->highlight_current_line_checkbutton),
pluma_prefs_manager_get_highlight_current_line ());
-
+
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dlg->priv->bracket_matching_checkbutton),
pluma_prefs_manager_get_bracket_matching ());
@@ -622,15 +622,15 @@ setup_view_page (PlumaPreferencesDialog *dlg)
}
display_right_margin = pluma_prefs_manager_get_display_right_margin ();
-
+
gtk_toggle_button_set_active (
- GTK_TOGGLE_BUTTON (dlg->priv->right_margin_checkbutton),
+ GTK_TOGGLE_BUTTON (dlg->priv->right_margin_checkbutton),
display_right_margin);
-
+
gtk_spin_button_set_value (
GTK_SPIN_BUTTON (dlg->priv->right_margin_position_spinbutton),
(guint)CLAMP (pluma_prefs_manager_get_right_margin_position (), 1, 160));
-
+
/* Set widgets sensitivity */
gtk_widget_set_sensitive (dlg->priv->display_line_numbers_checkbutton,
pluma_prefs_manager_display_line_numbers_can_set ());
@@ -639,45 +639,45 @@ setup_view_page (PlumaPreferencesDialog *dlg)
gtk_widget_set_sensitive (dlg->priv->bracket_matching_checkbutton,
pluma_prefs_manager_bracket_matching_can_set ());
wrap_mode_can_set = pluma_prefs_manager_wrap_mode_can_set ();
- gtk_widget_set_sensitive (dlg->priv->wrap_text_checkbutton,
+ gtk_widget_set_sensitive (dlg->priv->wrap_text_checkbutton,
wrap_mode_can_set);
- gtk_widget_set_sensitive (dlg->priv->split_checkbutton,
- wrap_mode_can_set &&
+ gtk_widget_set_sensitive (dlg->priv->split_checkbutton,
+ wrap_mode_can_set &&
(wrap_mode != GTK_WRAP_NONE));
gtk_widget_set_sensitive (dlg->priv->right_margin_checkbutton,
pluma_prefs_manager_display_right_margin_can_set ());
gtk_widget_set_sensitive (dlg->priv->right_margin_position_hbox,
- display_right_margin &&
+ display_right_margin &&
pluma_prefs_manager_right_margin_position_can_set ());
-
+
/* Connect signals */
g_signal_connect (dlg->priv->display_line_numbers_checkbutton,
"toggled",
- G_CALLBACK (display_line_numbers_checkbutton_toggled),
+ G_CALLBACK (display_line_numbers_checkbutton_toggled),
dlg);
g_signal_connect (dlg->priv->highlight_current_line_checkbutton,
- "toggled",
- G_CALLBACK (highlight_current_line_checkbutton_toggled),
+ "toggled",
+ G_CALLBACK (highlight_current_line_checkbutton_toggled),
dlg);
g_signal_connect (dlg->priv->bracket_matching_checkbutton,
- "toggled",
- G_CALLBACK (bracket_matching_checkbutton_toggled),
+ "toggled",
+ G_CALLBACK (bracket_matching_checkbutton_toggled),
dlg);
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),
+ "toggled",
+ G_CALLBACK (wrap_mode_checkbutton_toggled),
dlg);
g_signal_connect (dlg->priv->right_margin_checkbutton,
- "toggled",
- G_CALLBACK (right_margin_checkbutton_toggled),
+ "toggled",
+ G_CALLBACK (right_margin_checkbutton_toggled),
dlg);
g_signal_connect (dlg->priv->right_margin_position_spinbutton,
"value_changed",
- G_CALLBACK (right_margin_position_spinbutton_value_changed),
+ G_CALLBACK (right_margin_position_spinbutton_value_changed),
dlg);
}
@@ -696,7 +696,7 @@ default_font_font_checkbutton_toggled (GtkToggleButton *button,
}
else
{
- gtk_widget_set_sensitive (dlg->priv->font_hbox,
+ gtk_widget_set_sensitive (dlg->priv->font_hbox,
pluma_prefs_manager_editor_font_can_set ());
pluma_prefs_manager_set_use_default_font (FALSE);
}
@@ -739,8 +739,8 @@ setup_font_colors_page_font_section (PlumaPreferencesDialog *dlg)
dlg->priv->default_font_checkbutton,
ATK_RELATION_CONTROLLED_BY);
pluma_utils_set_atk_relation (dlg->priv->default_font_checkbutton,
- dlg->priv->font_button,
- ATK_RELATION_CONTROLLER_FOR);
+ dlg->priv->font_button,
+ ATK_RELATION_CONTROLLER_FOR);
editor_font = pluma_prefs_manager_get_system_font ();
label = g_strdup_printf(_("_Use the system fixed width font (%s)"),
@@ -774,13 +774,13 @@ setup_font_colors_page_font_section (PlumaPreferencesDialog *dlg)
dlg);
/* Set initial widget sensitivity */
- gtk_widget_set_sensitive (dlg->priv->default_font_checkbutton,
+ gtk_widget_set_sensitive (dlg->priv->default_font_checkbutton,
pluma_prefs_manager_use_default_font_can_set ());
if (use_default_font)
gtk_widget_set_sensitive (dlg->priv->font_hbox, FALSE);
else
- gtk_widget_set_sensitive (dlg->priv->font_hbox,
+ gtk_widget_set_sensitive (dlg->priv->font_hbox,
pluma_prefs_manager_editor_font_can_set ());
}
@@ -789,8 +789,8 @@ set_buttons_sensisitivity_according_to_scheme (PlumaPreferencesDialog *dlg,
const gchar *scheme_id)
{
gboolean editable;
-
- editable = (scheme_id != NULL) &&
+
+ editable = (scheme_id != NULL) &&
_pluma_style_scheme_manager_scheme_is_pluma_user_scheme (
pluma_get_style_scheme_manager (),
scheme_id);
@@ -858,7 +858,7 @@ ensure_color_scheme_id (const gchar *id)
return gtk_source_style_scheme_get_id (scheme);
}
-/* If def_id is NULL, use the default scheme as returned by
+/* If def_id is NULL, use the default scheme as returned by
* pluma_style_scheme_manager_get_default_scheme. If this one returns NULL
* use the first available scheme as default */
static const gchar *
@@ -866,17 +866,17 @@ populate_color_scheme_list (PlumaPreferencesDialog *dlg, const gchar *def_id)
{
GSList *schemes;
GSList *l;
-
+
gtk_list_store_clear (dlg->priv->schemes_treeview_model);
-
+
def_id = ensure_color_scheme_id (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.");
return NULL;
}
-
+
schemes = pluma_style_scheme_manager_list_schemes_sorted (pluma_get_style_scheme_manager ());
l = schemes;
while (l != NULL)
@@ -888,7 +888,7 @@ populate_color_scheme_list (PlumaPreferencesDialog *dlg, const gchar *def_id)
GtkTreeIter iter;
scheme = GTK_SOURCE_STYLE_SCHEME (l->data);
-
+
id = gtk_source_style_scheme_get_id (scheme);
name = gtk_source_style_scheme_get_name (scheme);
description = gtk_source_style_scheme_get_description (scheme);
@@ -905,39 +905,39 @@ populate_color_scheme_list (PlumaPreferencesDialog *dlg, const gchar *def_id)
if (strcmp (id, def_id) == 0)
{
GtkTreeSelection *selection;
-
+
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (dlg->priv->schemes_treeview));
gtk_tree_selection_select_iter (selection, &iter);
}
-
+
l = g_slist_next (l);
}
-
+
g_slist_free (schemes);
-
+
return def_id;
}
static void
-add_scheme_chooser_response_cb (GtkDialog *chooser,
+add_scheme_chooser_response_cb (GtkDialog *chooser,
gint res_id,
PlumaPreferencesDialog *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 = _pluma_style_scheme_manager_install_scheme (
pluma_get_style_scheme_manager (),
filename);
@@ -1010,14 +1010,14 @@ scheme_file_chooser_dialog_new (const gchar *title,
return result;
}
-
+
static void
install_scheme_clicked (GtkButton *button,
PlumaPreferencesDialog *dlg)
{
GtkWidget *chooser;
GtkFileFilter *filter;
-
+
if (dlg->priv->install_scheme_file_schooser != NULL) {
gtk_window_present (GTK_WINDOW (dlg->priv->install_scheme_file_schooser));
gtk_widget_grab_focus (dlg->priv->install_scheme_file_schooser);
@@ -1030,13 +1030,13 @@ install_scheme_clicked (GtkButton *button,
"process-stop", GTK_RESPONSE_CANCEL,
NULL);
- pluma_dialog_add_button (GTK_DIALOG (chooser),
+ pluma_dialog_add_button (GTK_DIALOG (chooser),
_("A_dd Scheme"),
"list-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"));
@@ -1044,25 +1044,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
@@ -1087,7 +1087,7 @@ uninstall_scheme_clicked (GtkButton *button,
ID_COLUMN, &id,
NAME_COLUMN, &name,
-1);
-
+
if (!_pluma_style_scheme_manager_uninstall_scheme (pluma_get_style_scheme_manager (), id))
{
pluma_warning (GTK_WINDOW (dlg),
@@ -1095,7 +1095,7 @@ uninstall_scheme_clicked (GtkButton *button,
name);
}
else
- {
+ {
const gchar *real_new_id;
gchar *new_id = NULL;
GtkTreePath *path;
@@ -1116,13 +1116,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;
@@ -1131,17 +1131,17 @@ uninstall_scheme_clicked (GtkButton *button,
new_iter_set = TRUE;
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)
pluma_prefs_manager_set_source_style_scheme (real_new_id);
}
@@ -1197,9 +1197,9 @@ setup_font_colors_page_style_scheme_section (PlumaPreferencesDialog *dlg)
GtkTreeViewColumn *column;
GtkTreeSelection *selection;
const gchar *def_id;
-
+
pluma_debug (DEBUG_PREFS);
-
+
/* Create GtkListStore for styles & setup treeview. */
dlg->priv->schemes_treeview_model = gtk_list_store_new (NUM_COLUMNS,
G_TYPE_STRING,
@@ -1234,7 +1234,7 @@ setup_font_colors_page_style_scheme_section (PlumaPreferencesDialog *dlg)
gtk_button_set_image (GTK_BUTTON (dlg->priv->uninstall_scheme_button),
gtk_image_new_from_icon_name ("list-remove", GTK_ICON_SIZE_BUTTON));
-
+
/* Connect signals */
g_signal_connect (dlg->priv->schemes_treeview,
"cursor-changed",
@@ -1248,7 +1248,7 @@ setup_font_colors_page_style_scheme_section (PlumaPreferencesDialog *dlg)
"clicked",
G_CALLBACK (uninstall_scheme_clicked),
dlg);
-
+
/* Set initial widget sensitivity */
set_buttons_sensisitivity_according_to_scheme (dlg, def_id);
}
@@ -1308,12 +1308,12 @@ pluma_preferences_dialog_init (PlumaPreferencesDialog *dlg)
/* 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))), 2); /* 2 * 5 + 2 = 12 */
-
+
g_signal_connect (dlg,
"response",
G_CALLBACK (dialog_response_handler),
NULL);
-
+
file = pluma_dirs_get_ui_file ("pluma-preferences-dialog.ui");
ret = pluma_utils_get_ui_objects (file,
root_objects,
@@ -1364,11 +1364,11 @@ pluma_preferences_dialog_init (PlumaPreferencesDialog *dlg)
if (!ret)
{
gtk_widget_show (error_widget);
-
+
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))),
error_widget,
TRUE, TRUE, 0);
-
+
return;
}
diff --git a/pluma/dialogs/pluma-preferences-dialog.h b/pluma/dialogs/pluma-preferences-dialog.h
index 17c57268..b5590239 100644
--- a/pluma/dialogs/pluma-preferences-dialog.h
+++ b/pluma/dialogs/pluma-preferences-dialog.h
@@ -3,7 +3,7 @@
* pluma-preferences-dialog.c
* This file is part of pluma
*
- * 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., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
/*
- * Modified by the pluma Team, 2003. See the AUTHORS file for a
- * list of people on the pluma Team.
- * See the ChangeLog files for a list of changes.
+ * Modified by the pluma Team, 2003. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
*
* $Id$
*/
@@ -56,10 +56,10 @@ typedef struct _PlumaPreferencesDialogPrivate PlumaPreferencesDialogPrivate;
*/
typedef struct _PlumaPreferencesDialog PlumaPreferencesDialog;
-struct _PlumaPreferencesDialog
+struct _PlumaPreferencesDialog
{
GtkDialog dialog;
-
+
/*< private > */
PlumaPreferencesDialogPrivate *priv;
};
@@ -69,7 +69,7 @@ struct _PlumaPreferencesDialog
*/
typedef struct _PlumaPreferencesDialogClass PlumaPreferencesDialogClass;
-struct _PlumaPreferencesDialogClass
+struct _PlumaPreferencesDialogClass
{
GtkDialogClass parent_class;
};
diff --git a/pluma/dialogs/pluma-search-dialog.c b/pluma/dialogs/pluma-search-dialog.c
index 1d8f59c1..4754ab85 100644
--- a/pluma/dialogs/pluma-search-dialog.c
+++ b/pluma/dialogs/pluma-search-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., 51 Franklin St, Fifth Floor,
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
-
+
/*
- * Modified by the pluma Team, 2005. See the AUTHORS file for a
- * list of people on the pluma Team.
- * See the ChangeLog files for a list of changes.
+ * Modified by the pluma Team, 2005. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
*
* $Id$
*/
@@ -56,7 +56,7 @@ enum
static guint dialog_signals [LAST_SIGNAL] = { 0 };
-struct _PlumaSearchDialogPrivate
+struct _PlumaSearchDialogPrivate
{
gboolean show_replace;
@@ -135,28 +135,28 @@ pluma_search_dialog_present_with_time (PlumaSearchDialog *dialog,
gtk_window_present_with_time (GTK_WINDOW (dialog), timestamp);
- gtk_widget_grab_focus (dialog->priv->search_text_entry);
+ gtk_widget_grab_focus (dialog->priv->search_text_entry);
}
static gboolean
show_replace (PlumaSearchDialog *dlg)
{
pluma_search_dialog_set_show_replace (dlg, TRUE);
-
+
return TRUE;
}
-static void
+static void
pluma_search_dialog_class_init (PlumaSearchDialogClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkBindingSet *binding_set;
-
+
object_class->set_property = pluma_search_dialog_set_property;
object_class->get_property = pluma_search_dialog_get_property;
-
+
klass->show_replace = show_replace;
-
+
dialog_signals[SHOW_REPLACE] =
g_signal_new ("show_replace",
G_TYPE_FROM_CLASS (object_class),
@@ -165,7 +165,7 @@ pluma_search_dialog_class_init (PlumaSearchDialogClass *klass)
NULL, NULL,
pluma_marshal_BOOLEAN__VOID,
G_TYPE_BOOLEAN, 0);
-
+
g_object_class_install_property (object_class, PROP_SHOW_REPLACE,
g_param_spec_boolean ("show-replace",
"Show Replace",
@@ -176,8 +176,8 @@ pluma_search_dialog_class_init (PlumaSearchDialogClass *klass)
g_type_class_add_private (object_class, sizeof (PlumaSearchDialogPrivate));
binding_set = gtk_binding_set_by_class (klass);
-
- /* Note: we cannot use the keyval/modifier associated with the
+
+ /* Note: we cannot use the keyval/modifier associated with the
* GTK_STOCK_FIND_AND_REPLACE stock item since MATE HIG suggests Ctrl+h
* for Replace while gtk+ uses Ctrl+r */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_h, GDK_CONTROL_MASK, "show_replace", 0);
@@ -231,18 +231,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),
PLUMA_SEARCH_DIALOG_FIND_RESPONSE, TRUE);
- gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
PLUMA_SEARCH_DIALOG_REPLACE_ALL_RESPONSE, TRUE);
}
else
{
- gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
PLUMA_SEARCH_DIALOG_FIND_RESPONSE, FALSE);
- gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
PLUMA_SEARCH_DIALOG_REPLACE_RESPONSE, FALSE);
- gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
PLUMA_SEARCH_DIALOG_REPLACE_ALL_RESPONSE, FALSE);
}
}
@@ -331,7 +331,7 @@ pluma_search_dialog_init (PlumaSearchDialog *dlg)
gtk_window_set_destroy_with_parent (GTK_WINDOW (dlg), TRUE);
pluma_dialog_add_button (GTK_DIALOG (dlg), _("_Close"), "window-close", GTK_RESPONSE_CANCEL);
-
+
/* 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))),
@@ -482,11 +482,11 @@ pluma_search_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);
}
@@ -526,7 +526,7 @@ pluma_search_dialog_set_search_text (PlumaSearchDialog *dialog,
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
PLUMA_SEARCH_DIALOG_FIND_RESPONSE,
(*text != '\0'));
-
+
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
PLUMA_SEARCH_DIALOG_REPLACE_ALL_RESPONSE,
(*text != '\0'));
diff --git a/pluma/dialogs/pluma-search-dialog.h b/pluma/dialogs/pluma-search-dialog.h
index e6ebe8dc..cb23be31 100644
--- a/pluma/dialogs/pluma-search-dialog.h
+++ b/pluma/dialogs/pluma-search-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., 51 Franklin St, Fifth Floor,
+ * Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
-
+
/*
- * Modified by the pluma Team, 2005. See the AUTHORS file for a
- * list of people on the pluma Team.
- * See the ChangeLog files for a list of changes.
+ * Modified by the pluma Team, 2005. See the AUTHORS file for a
+ * list of people on the pluma Team.
+ * See the ChangeLog files for a list of changes.
*
* $Id$
*/
@@ -54,7 +54,7 @@ typedef struct _PlumaSearchDialogPrivate PlumaSearchDialogPrivate;
*/
typedef struct _PlumaSearchDialog PlumaSearchDialog;
-struct _PlumaSearchDialog
+struct _PlumaSearchDialog
{
GtkDialog dialog;
@@ -67,10 +67,10 @@ struct _PlumaSearchDialog
*/
typedef struct _PlumaSearchDialogClass PlumaSearchDialogClass;
-struct _PlumaSearchDialogClass
+struct _PlumaSearchDialogClass
{
GtkDialogClass parent_class;
-
+
/* Key bindings */
gboolean (* show_replace) (PlumaSearchDialog *dlg);
};
@@ -126,7 +126,7 @@ gboolean pluma_search_dialog_get_backwards (PlumaSearchDialog *dialog);
void pluma_search_dialog_set_wrap_around (PlumaSearchDialog *dialog,
gboolean wrap_around);
gboolean pluma_search_dialog_get_wrap_around (PlumaSearchDialog *dialog);
-
+
void pluma_search_dialog_set_parse_escapes (PlumaSearchDialog *dialog,
gboolean parse_escapes);