[gnome-builder] frame: use connect_object()



commit b7f0ce80ea22fbf68cb29a57c5542f660cf0d53b
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 10 15:11:34 2016 +0300

    frame: use connect_object()
    
    This can get triggered if the settings get reused and our keybindings
    change after getting closed.

 libide/editor/ide-editor-frame.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/editor/ide-editor-frame.c b/libide/editor/ide-editor-frame.c
index d459053..c423248 100644
--- a/libide/editor/ide-editor-frame.c
+++ b/libide/editor/ide-editor-frame.c
@@ -984,7 +984,7 @@ ide_editor_frame_init (IdeEditorFrame *self)
   g_settings_bind_with_mapping (settings, "smart-home-end", self->source_view, "smart-home-end", 
G_SETTINGS_BIND_GET, get_smart_home_end, NULL, NULL, NULL);
   g_settings_bind (settings, "show-map", self, "show-map", G_SETTINGS_BIND_GET);
   g_settings_bind (settings, "auto-hide-map", self, "auto-hide-map", G_SETTINGS_BIND_GET);
-  g_signal_connect (settings, "changed::keybindings", G_CALLBACK (keybindings_changed), self);
+  g_signal_connect_object (settings, "changed::keybindings", G_CALLBACK (keybindings_changed), self, 0);
 
   insight_settings = g_settings_new ("org.gnome.builder.code-insight");
   g_settings_bind (insight_settings, "word-completion", self->source_view, "enable-word-completion", 
G_SETTINGS_BIND_GET);


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