[metacity] tabpopup: fix build warnings



commit 86ab16c081453b73ddf2e5be72905d06fba877d1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Sep 20 18:58:30 2015 +0300

    tabpopup: fix build warnings

 src/ui/tabpopup.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index e67bd71..4262227 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -140,16 +140,9 @@ tab_entry_new (const MetaTabEntry *entry,
     {
       gchar *str;
       gchar *tmp;
-      gchar *formatter = "%s";
 
       str = meta_g_utf8_strndup (entry->title, 4096);
-
-      if (entry->hidden)
-        {
-          formatter = "[%s]";
-        }
-
-      tmp = g_markup_printf_escaped (formatter, str);
+      tmp = g_markup_printf_escaped (entry->hidden ? "[%s]" : "%s", str);
       g_free (str);
       str = tmp;
 


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