summaryrefslogtreecommitdiff
path: root/maximus/maximus-bind.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-03-05 13:08:35 +0300
committerStefano Karapetsas <[email protected]>2015-03-13 08:38:31 +0100
commit26b51510ab5bf8784950344836551de8a35afbdc (patch)
tree4eec70f412f65d268ed94e43cb5223073f1f5ba0 /maximus/maximus-bind.c
parenteecfa592f2161a8b17f16d975e958806cd4e4d13 (diff)
downloadmate-netbook-26b51510ab5bf8784950344836551de8a35afbdc.tar.bz2
mate-netbook-26b51510ab5bf8784950344836551de8a35afbdc.tar.xz
maximus: first connect to settings, then read them.
fixes the issue with GLib >= 2.43, https://git.gnome.org/browse/glib/commit/?id=8ff5668a458344da22d30491e3ce726d861b3619 Closes https://github.com/mate-desktop/mate-netbook/pull/19
Diffstat (limited to 'maximus/maximus-bind.c')
-rw-r--r--maximus/maximus-bind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/maximus/maximus-bind.c b/maximus/maximus-bind.c
index 7fbcefc..c7d3487 100644
--- a/maximus/maximus-bind.c
+++ b/maximus/maximus-bind.c
@@ -474,10 +474,11 @@ maximus_bind_init (MaximusBind *bind)
tomboy_keybinder_init ();
- priv->binding = g_settings_get_string (priv->settings, BIND_EXCLUDE_CLASS);
g_signal_connect (priv->settings, "changed::" BIND_EXCLUDE_CLASS,
G_CALLBACK (on_binding_changed), bind);
+ priv->binding = g_settings_get_string (priv->settings, BIND_EXCLUDE_CLASS);
+
if (binding_is_valid (priv->binding))
tomboy_keybinder_bind (priv->binding,
(TomboyBindkeyHandler)on_binding_activated,