[gtksourceview/wip/minimap] fix ternary



commit 0f4420a16709c08c79de6ee2bfd8a64e6a5e4483
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu May 7 14:42:27 2015 +0200

    fix ternary

 gtksourceview/gtksourcemap.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcemap.c b/gtksourceview/gtksourcemap.c
index 8bb9c63..7afaef5 100644
--- a/gtksourceview/gtksourcemap.c
+++ b/gtksourceview/gtksourcemap.c
@@ -72,8 +72,7 @@ gtk_source_map_rebuild_css (GtkSourceMap *map)
                gchar *tmp;
 
                tmp = _gtk_source_pango_font_description_to_css (priv->font_desc);
-               /* FIXME strange ternary */
-               css = g_strdup_printf ("GtkSourceView { %s }\n", tmp ?: "");
+               css = g_strdup_printf ("GtkSourceView { %s }\n", tmp != NULL ? tmp : "");
                gtk_css_provider_load_from_data (priv->view_css_provider, css, -1, NULL);
                g_free (css);
                g_free (tmp);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]