[gnome-builder/wip/libide] libide: hold on to reference during binding activation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: hold on to reference during binding activation
- Date: Wed, 4 Mar 2015 04:23:41 +0000 (UTC)
commit 0625e8f916348e0e9c49091ada4c4a5201bda41f
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 3 20:18:54 2015 -0800
libide: hold on to reference during binding activation
libide/ide-source-view-mode.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-source-view-mode.c b/libide/ide-source-view-mode.c
index 15a5abd..a49895e 100644
--- a/libide/ide-source-view-mode.c
+++ b/libide/ide-source-view-mode.c
@@ -187,13 +187,12 @@ _ide_source_view_mode_do_event (IdeSourceViewMode *mode,
context = gtk_widget_get_style_context (GTK_WIDGET (mode));
+ g_object_ref (context);
gtk_style_context_save (context);
-
gtk_style_context_add_class (context, priv->name);
-
handled = gtk_bindings_activate_event (G_OBJECT (mode), event);
-
gtk_style_context_restore (context);
+ g_object_unref (context);
*remove = FALSE;
switch (priv->type)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]