No "New Tab" in toolbar editor with Granite
Fixes: https://bugs.launchpad.net/midori/+bug/1029616
This commit is contained in:
parent
7f91e0985f
commit
92e21d50ad
1 changed files with 5 additions and 0 deletions
|
@ -104,7 +104,12 @@ static GSList *tb_editor_array_to_list(const gchar **items)
|
||||||
name = items;
|
name = items;
|
||||||
while (*name != NULL)
|
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')
|
if (*name[0] != '\0')
|
||||||
|
#endif
|
||||||
list = g_slist_append(list, g_strdup(*name));
|
list = g_slist_append(list, g_strdup(*name));
|
||||||
name++;
|
name++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue