[gspell/wip/entry: 3/3] Entry: connect to changed signal
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell/wip/entry: 3/3] Entry: connect to changed signal
- Date: Fri, 28 Oct 2016 12:35:05 +0000 (UTC)
commit d70d3073c45382490bee3411ac3e4a0cb1160623
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Oct 28 14:07:11 2016 +0200
Entry: connect to changed signal
gspell/gspell-entry.c | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/gspell/gspell-entry.c b/gspell/gspell-entry.c
index 04626b0..c89fe77 100644
--- a/gspell/gspell-entry.c
+++ b/gspell/gspell-entry.c
@@ -91,6 +91,18 @@ apply_underline (GspellEntry *gspell_entry,
}
static void
+changed_before_cb (GtkEditable *editable,
+ GspellEntry *gspell_entry)
+{
+}
+
+static void
+changed_after_cb (GtkEditable *editable,
+ GspellEntry *gspell_entry)
+{
+}
+
+static void
set_entry (GspellEntry *gspell_entry,
GtkEntry *gtk_entry)
{
@@ -99,7 +111,17 @@ set_entry (GspellEntry *gspell_entry,
g_assert (gspell_entry->entry == NULL);
gspell_entry->entry = gtk_entry;
- apply_underline (gspell_entry, 0, 3);
+ g_signal_connect_object (gtk_entry,
+ "changed",
+ G_CALLBACK (changed_before_cb),
+ gspell_entry,
+ 0);
+
+ g_signal_connect_object (gtk_entry,
+ "changed",
+ G_CALLBACK (changed_after_cb),
+ gspell_entry,
+ G_CONNECT_AFTER);
g_object_notify (G_OBJECT (gspell_entry), "entry");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]