[gnome-builder] spellchecker: move the setting of actions initial state



commit 431c3cc5c82a9344854780ae219b7fa24da44aec
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Mon Jul 31 00:22:43 2017 +0200

    spellchecker: move the setting of actions initial state
    
    We need to do this after the actions definition
    in constructed method part.

 plugins/spellcheck/gbp-spell-widget.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/spellcheck/gbp-spell-widget.c b/plugins/spellcheck/gbp-spell-widget.c
index 87c9160..d878824 100644
--- a/plugins/spellcheck/gbp-spell-widget.c
+++ b/plugins/spellcheck/gbp-spell-widget.c
@@ -850,6 +850,7 @@ gbp_spell_widget_constructed (GObject *object)
   GbpSpellWidget *self = (GbpSpellWidget *)object;
 
   _gbp_spell_widget_init_actions (self);
+  gbp_spell_widget__word_entry_changed_cb (self, self->word_entry);
 
   g_signal_connect_swapped (self->word_entry,
                             "changed",
@@ -1058,8 +1059,6 @@ gbp_spell_widget_init (GbpSpellWidget *self)
 
   gtk_widget_init_template (GTK_WIDGET (self));
 
-  gbp_spell_widget__word_entry_changed_cb (self, self->word_entry);
-
   g_signal_connect_swapped (self->dict_words_list,
                             "key-press-event",
                             G_CALLBACK (dict_row_key_pressed_event_cb),


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