[gnome-builder] vim: use connect_object() for object lifetype tracking
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: use connect_object() for object lifetype tracking
- Date: Tue, 2 Dec 2014 04:24:32 +0000 (UTC)
commit 66f3fd4939bb1ba5d2b4695614d9e3854761e529
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 1 19:54:16 2014 -0800
vim: use connect_object() for object lifetype tracking
src/vim/gb-source-vim.c | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index 3b0d80d..af73972 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -3164,28 +3164,32 @@ gb_source_vim_connect (GbSourceVim *vim)
buffer = gtk_text_view_get_buffer (vim->priv->text_view);
vim->priv->key_press_event_handler =
- g_signal_connect (vim->priv->text_view,
- "key-press-event",
- G_CALLBACK (gb_source_vim_key_press_event_cb),
- vim);
+ g_signal_connect_object (vim->priv->text_view,
+ "key-press-event",
+ G_CALLBACK (gb_source_vim_key_press_event_cb),
+ vim,
+ 0);
vim->priv->focus_in_event_handler =
- g_signal_connect (vim->priv->text_view,
- "focus-in-event",
- G_CALLBACK (gb_source_vim_focus_in_event_cb),
- vim);
+ g_signal_connect_object (vim->priv->text_view,
+ "focus-in-event",
+ G_CALLBACK (gb_source_vim_focus_in_event_cb),
+ vim,
+ 0);
vim->priv->mark_set_handler =
- g_signal_connect_after (buffer,
+ g_signal_connect_object (buffer,
"mark-set",
G_CALLBACK (gb_source_vim_mark_set_cb),
- vim);
+ vim,
+ G_CONNECT_AFTER);
vim->priv->delete_range_handler =
- g_signal_connect_after (buffer,
+ g_signal_connect_object (buffer,
"delete-range",
G_CALLBACK (gb_source_vim_delete_range_cb),
- vim);
+ vim,
+ G_CONNECT_AFTER);
if (GTK_SOURCE_IS_BUFFER (buffer))
vim->priv->search_context =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]