[gedit/wip/search] Incremental regex search
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/search] Incremental regex search
- Date: Wed, 14 Aug 2013 20:12:11 +0000 (UTC)
commit 6291914da29debbcd4f735c2d10a444c24bc762c
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Aug 14 22:11:18 2013 +0200
Incremental regex search
gedit/gedit-view-frame.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 1acc74f..ecca89b 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -690,6 +690,16 @@ add_popup_menu_items (GeditViewFrame *frame,
menu_item, "active",
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
+ /* create "Match as Regular Expression" menu item. */
+ menu_item = gtk_check_menu_item_new_with_mnemonic (_("Match as _Regular Expression"));
+
+ gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), menu_item);
+ gtk_widget_show (menu_item);
+
+ g_object_bind_property (frame->priv->search_settings, "regex-enabled",
+ menu_item, "active",
+ G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
+
/* create "Match Entire Word Only" menu item. */
menu_item = gtk_check_menu_item_new_with_mnemonic (_("Match _Entire Word Only"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]