summaryrefslogtreecommitdiff
path: root/gtksourceview/gtksourcegutterrenderer.c
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <icq@gnome.org>2011-01-12 14:55:15 +0100
committerIgnacio Casal Quinteiro <icq@gnome.org>2011-01-12 14:55:15 +0100
commit44302f747b0b67b43dddc046ef25690caa8b260b (patch)
treeb07f5dc98b718f0f789983d6b4f816125644e854 /gtksourceview/gtksourcegutterrenderer.c
parent48ce471fd9630bc0709246bde1c749ae5296ce18 (diff)
downloadgtksourceview-44302f747b0b67b43dddc046ef25690caa8b260b.tar.gz
Save a few more bits.
Diffstat (limited to 'gtksourceview/gtksourcegutterrenderer.c')
-rw-r--r--gtksourceview/gtksourcegutterrenderer.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtksourceview/gtksourcegutterrenderer.c b/gtksourceview/gtksourcegutterrenderer.c
index 31bc5917..af5ce39c 100644
--- a/gtksourceview/gtksourcegutterrenderer.c
+++ b/gtksourceview/gtksourcegutterrenderer.c
@@ -52,11 +52,11 @@ struct _GtkSourceGutterRendererPrivate
gint size;
- GdkRGBA background_color;
- gboolean background_set;
-
GtkSourceGutterRendererAlignmentMode alignment_mode;
+ GdkRGBA background_color;
+
+ guint background_set : 1;
guint visible : 1;
};
@@ -276,8 +276,10 @@ set_size (GtkSourceGutterRenderer *renderer,
static void
set_background_color_set (GtkSourceGutterRenderer *renderer,
- gboolean isset)
+ gboolean isset)
{
+ isset = (isset != FALSE);
+
if (isset != renderer->priv->background_set)
{
renderer->priv->background_set = isset;