summaryrefslogtreecommitdiff
path: root/pluma/dialogs/pluma-search-dialog.c
diff options
context:
space:
mode:
authorbl0ckeduser <[email protected]>2013-09-22 11:29:49 -0400
committerbl0ckeduser <[email protected]>2013-09-22 12:07:36 -0400
commit24dc1853b70b34301034c28e2d0a0e2bb416e8f6 (patch)
treea6b095132702c8c131f6fa45363457ed3ffa2d80 /pluma/dialogs/pluma-search-dialog.c
parent9b7c40cb7350c5eb04f6c0bc472f25c44bd55025 (diff)
downloadpluma-24dc1853b70b34301034c28e2d0a0e2bb416e8f6.tar.bz2
pluma-24dc1853b70b34301034c28e2d0a0e2bb416e8f6.tar.xz
Make escape sequence parsing in search a GUI checkbox option
Diffstat (limited to 'pluma/dialogs/pluma-search-dialog.c')
-rwxr-xr-xpluma/dialogs/pluma-search-dialog.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/pluma/dialogs/pluma-search-dialog.c b/pluma/dialogs/pluma-search-dialog.c
index 7db2a2bc..7e199225 100755
--- a/pluma/dialogs/pluma-search-dialog.c
+++ b/pluma/dialogs/pluma-search-dialog.c
@@ -70,6 +70,7 @@ struct _PlumaSearchDialogPrivate
GtkWidget *entire_word_checkbutton;
GtkWidget *backwards_checkbutton;
GtkWidget *wrap_around_checkbutton;
+ GtkWidget *parse_escapes_checkbutton;
GtkWidget *find_button;
GtkWidget *replace_button;
GtkWidget *replace_all_button;
@@ -357,6 +358,7 @@ pluma_search_dialog_init (PlumaSearchDialog *dlg)
"entire_word_checkbutton", &dlg->priv->entire_word_checkbutton,
"search_backwards_checkbutton", &dlg->priv->backwards_checkbutton,
"wrap_around_checkbutton", &dlg->priv->wrap_around_checkbutton,
+ "parse_escapes_checkbutton", &dlg->priv->parse_escapes_checkbutton,
NULL);
g_free (file);
@@ -632,3 +634,21 @@ pluma_search_dialog_get_wrap_around (PlumaSearchDialog *dialog)
return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->priv->wrap_around_checkbutton));
}
+
+void
+pluma_search_dialog_set_parse_escapes (PlumaSearchDialog *dialog,
+ gboolean parse_escapes)
+{
+ g_return_if_fail (PLUMA_IS_SEARCH_DIALOG (dialog));
+
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->priv->parse_escapes_checkbutton),
+ parse_escapes);
+}
+
+gboolean
+pluma_search_dialog_get_parse_escapes (PlumaSearchDialog *dialog)
+{
+ g_return_val_if_fail (PLUMA_IS_SEARCH_DIALOG (dialog), FALSE);
+
+ return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->priv->parse_escapes_checkbutton));
+}