summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-09-20 18:58:30 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-09-20 18:58:30 +0300
commit86ab16c081453b73ddf2e5be72905d06fba877d1 (patch)
tree7f0de2a6340acf1d80d0bdeb694634885c86bb9c
parent556316cf4fbe04b3814568b53fd47206ace959e3 (diff)
downloadmetacity-86ab16c081453b73ddf2e5be72905d06fba877d1.tar.gz
tabpopup: fix build warnings
-rw-r--r--src/ui/tabpopup.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index e67bd71d..4262227c 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;