From: Christian Dywan Date: Sat, 28 Jul 2012 08:27:59 +0000 (+0200) Subject: No "New Tab" in toolbar editor with Granite X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92e21d50ad7b5b24bc07e425cb20eccb57e05826;p=midori No "New Tab" in toolbar editor with Granite Fixes: https://bugs.launchpad.net/midori/+bug/1029616 --- diff --git a/extensions/toolbar-editor.c b/extensions/toolbar-editor.c index f330aa9d..93486682 100644 --- a/extensions/toolbar-editor.c +++ b/extensions/toolbar-editor.c @@ -104,7 +104,12 @@ static GSList *tb_editor_array_to_list(const gchar **items) name = items; while (*name != NULL) { + #ifdef HAVE_GRANITE + /* A "new tab" button is already part of the notebook */ + if (*name[0] != '\0' && strcmp (*name, "TabNew")) + #else if (*name[0] != '\0') + #endif list = g_slist_append(list, g_strdup(*name)); name++; }