[gnome-builder/wip/chergert/layout] spellcheck: rename bindings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] spellcheck: rename bindings
- Date: Sun, 16 Jul 2017 20:48:51 +0000 (UTC)
commit 07840172dded0c1a0a6662415239c5915791c5cc
Author: Christian Hergert <chergert redhat com>
Date: Sun Jul 16 13:47:24 2017 -0700
spellcheck: rename bindings
This is a more descriptive name that describes what it contains.
Even if it is a bit long..
plugins/spellcheck/gbp-spell-editor-view-addin.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/plugins/spellcheck/gbp-spell-editor-view-addin.c
b/plugins/spellcheck/gbp-spell-editor-view-addin.c
index 0cd5c3d..7fd7085 100644
--- a/plugins/spellcheck/gbp-spell-editor-view-addin.c
+++ b/plugins/spellcheck/gbp-spell-editor-view-addin.c
@@ -24,7 +24,7 @@
struct _GbpSpellEditorViewAddin
{
GObject parent_instance;
- DzlBindingGroup *bindings;
+ DzlBindingGroup *buffer_addin_bindings;
};
static void
@@ -57,10 +57,14 @@ gbp_spell_editor_view_addin_load (IdeEditorViewAddin *addin,
g_assert (wrapper != NULL);
g_assert (GSPELL_IS_TEXT_VIEW (wrapper));
- self->bindings = dzl_binding_group_new ();
- dzl_binding_group_bind (self->bindings, "enabled", wrapper, "enable-language-menu", 0);
- dzl_binding_group_bind (self->bindings, "enabled", wrapper, "inline-spell-checking", 0);
- dzl_binding_group_set_source (self->bindings, buffer_addin);
+ self->buffer_addin_bindings = dzl_binding_group_new ();
+ dzl_binding_group_bind (self->buffer_addin_bindings, "enabled",
+ wrapper, "enable-language-menu",
+ G_BINDING_SYNC_CREATE);
+ dzl_binding_group_bind (self->buffer_addin_bindings, "enabled",
+ wrapper, "inline-spell-checking",
+ G_BINDING_SYNC_CREATE);
+ dzl_binding_group_set_source (self->buffer_addin_bindings, buffer_addin);
group = dzl_properties_group_new (G_OBJECT (buffer_addin));
dzl_properties_group_add_all_properties (group);
@@ -77,8 +81,8 @@ gbp_spell_editor_view_addin_unload (IdeEditorViewAddin *addin,
g_assert (IDE_IS_EDITOR_VIEW (view));
gtk_widget_insert_action_group (GTK_WIDGET (view), "spellcheck", NULL);
- dzl_binding_group_set_source (self->bindings, NULL);
- g_clear_object (&self->bindings);
+ dzl_binding_group_set_source (self->buffer_addin_bindings, NULL);
+ g_clear_object (&self->buffer_addin_bindings);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]