[geany/geany] fd8ba6: Disable start of word checkbox when whole word checkbox is enabled
Nick Treleaven
git-noreply at xxxxx
Sat Mar 16 13:47:28 UTC 2013
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Sat, 16 Mar 2013 13:47:28 UTC
Commit: fd8ba60b4a301fa22be7f95ce576ef5f615a4db6
https://github.com/geany/geany/commit/fd8ba60b4a301fa22be7f95ce576ef5f615a4db6
Log Message:
-----------
Disable start of word checkbox when whole word checkbox is enabled
Modified Paths:
--------------
src/search.c
Modified: src/search.c
12 files changed, 12 insertions(+), 0 deletions(-)
===================================================================
@@ -283,6 +283,14 @@ void search_finalize(void)
}
+static void on_widget_toggled_set_insensitive(
+ GtkToggleButton *togglebutton, gpointer user_data)
+{
+ gtk_widget_set_sensitive(GTK_WIDGET(user_data),
+ !gtk_toggle_button_get_active(togglebutton));
+}
+
+
static GtkWidget *add_find_checkboxes(GtkDialog *dialog)
{
GtkWidget *checkbox1, *checkbox2, *check_regexp, *check_back, *checkbox5,
@@ -336,6 +344,10 @@ static GtkWidget *add_find_checkboxes(GtkDialog *dialog)
ui_hookup_widget(dialog, checkbox5, "check_wordstart");
gtk_button_set_focus_on_click(GTK_BUTTON(checkbox5), FALSE);
+ /* disable wordstart when wholeword is checked */
+ g_signal_connect(checkbox2, "toggled",
+ G_CALLBACK(on_widget_toggled_set_insensitive), checkbox5);
+
/* Matching options */
mbox = gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(mbox), checkbox1);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list