[gnome-builder/wip/chergert/gutter] check set field
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/gutter] check set field
- Date: Mon, 18 Sep 2017 03:03:53 +0000 (UTC)
commit dc29e9a23ad201ee820e1d05bb5d6038bad805f9
Author: Christian Hergert <chergert redhat com>
Date: Sun Sep 17 20:03:43 2017 -0700
check set field
libide/sourceview/ide-omni-gutter-renderer.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/libide/sourceview/ide-omni-gutter-renderer.c b/libide/sourceview/ide-omni-gutter-renderer.c
index 6de1a69..01f93f0 100644
--- a/libide/sourceview/ide-omni-gutter-renderer.c
+++ b/libide/sourceview/ide-omni-gutter-renderer.c
@@ -126,8 +126,15 @@ get_style_boolean (GtkSourceStyleScheme *scheme,
if (style != NULL)
{
- g_object_get (style, property, val, NULL);
- return TRUE;
+ g_autofree gchar *property_set = g_strdup_printf ("%s-set", property);
+ gboolean set = FALSE;
+
+ g_object_get (style,
+ property, val,
+ property_set, &set,
+ NULL);
+
+ return set;
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]