summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tabpopup.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index 18ee83d5..0f6e129a 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -164,16 +164,10 @@ 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;