summaryrefslogtreecommitdiff
path: root/frontends/gtk/tabs.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-27 23:46:40 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-21 10:53:41 +0100
commit8eebe695f053abb390ddc9894415f595ad7f4177 (patch)
tree89d32a9e03f9d3bc02340c6111e080fb725d8542 /frontends/gtk/tabs.c
parentb24b28e40eb84e1ed361224b172928582b471e10 (diff)
downloadnetsurf-8eebe695f053abb390ddc9894415f595ad7f4177.tar.gz
netsurf-8eebe695f053abb390ddc9894415f595ad7f4177.tar.bz2
allow menu activation to use the toolbar button implementations
Diffstat (limited to 'frontends/gtk/tabs.c')
-rw-r--r--frontends/gtk/tabs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/gtk/tabs.c b/frontends/gtk/tabs.c
index 9e5c1b39e..04bd69f23 100644
--- a/frontends/gtk/tabs.c
+++ b/frontends/gtk/tabs.c
@@ -25,6 +25,7 @@
#include "desktop/search.h"
#include "gtk/compat.h"
+#include "gtk/toolbar_items.h"
#include "gtk/scaffolding.h"
#include "gtk/window.h"
#include "gtk/search.h"
@@ -179,7 +180,7 @@ nsgtk_tab_switch_page_after(GtkNotebook *notebook,
srcpage = gtk_notebook_get_nth_page(notebook, srcpagenum);
gw = g_object_get_data(G_OBJECT(srcpage), "gui_window");
if ((gw != NULL) && (nsgtk_get_scaffold(gw) != NULL)) {
- error = nsgtk_scaffolding_new_tab(gw);
+ error = nsgtk_window_item_activate(gw, NEWTAB_BUTTON);
if (error != NSERROR_OK) {
NSLOG(netsurf, INFO,
"Failed to open new tab.");