[gtksourceview/wip/minimap] fix getting style
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/minimap] fix getting style
- Date: Thu, 7 May 2015 13:16:59 +0000 (UTC)
commit 6250f70dedf871644d0df47682a4ed8489dcca3c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu May 7 14:41:41 2015 +0200
fix getting style
gtksourceview/gtksourcemap.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtksourceview/gtksourcemap.c b/gtksourceview/gtksourcemap.c
index 21dc622..8bb9c63 100644
--- a/gtksourceview/gtksourcemap.c
+++ b/gtksourceview/gtksourcemap.c
@@ -92,13 +92,8 @@ gtk_source_map_rebuild_css (GtkSourceMap *map)
gchar *background = NULL;
GtkSourceStyle *style;
- /* FIXME hard to understand what the condition does with
- * a quick glance. It's better to assign variables
- * outside a condition, and replace "!style" with
- * "style == NULL", it's clearer IMO.
- */
- if (!(style = gtk_source_style_scheme_get_style (style_scheme, "map-overlay")) &&
- !(style = gtk_source_style_scheme_get_style (style_scheme, "selection")))
+ style = gtk_source_style_scheme_get_style (style_scheme, "map-overlay");
+ if (style == NULL)
{
GtkStyleContext *context;
GdkRGBA color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]