[gspell/wip/current-word-policy: 17/17] Entry: debug messages



commit 907194d34a1ec4a19ffd218f01903d3033b48916
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Dec 20 19:17:31 2016 +0100

    Entry: debug messages

 gspell/gspell-entry.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gspell/gspell-entry.c b/gspell/gspell-entry.c
index cab28ea..32296ad 100644
--- a/gspell/gspell-entry.c
+++ b/gspell/gspell-entry.c
@@ -673,6 +673,7 @@ cursor_position_notify_cb (GtkEntry    *gtk_entry,
                           GParamSpec  *pspec,
                           GspellEntry *gspell_entry)
 {
+       g_message ("%s", G_STRFUNC);
        _gspell_current_word_policy_cursor_moved (gspell_entry->current_word_policy);
 }
 
@@ -701,6 +702,8 @@ insert_text_after_cb (GtkEditable *editable,
                      gint        *position,
                      GspellEntry *gspell_entry)
 {
+       g_message ("%s", G_STRFUNC);
+
        if (text_contains_several_chars (new_text, new_text_length))
        {
                _gspell_current_word_policy_several_chars_inserted (gspell_entry->current_word_policy);
@@ -717,6 +720,7 @@ insert_text_after_cb (GtkEditable *editable,
 
                cursor_pos = gtk_editable_get_position (editable);
                at_cursor_pos = cursor_pos == *position;
+               g_message ("%s: at_cursor_pos=%d", G_STRFUNC, at_cursor_pos);
 
                _gspell_current_word_policy_single_char_inserted (gspell_entry->current_word_policy,
                                                                  ch,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]