summaryrefslogtreecommitdiff
path: root/frontends/gtk/toolbar.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-21 19:58:00 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-21 10:53:41 +0100
commit869c16dae60b519013bde67c443ce737bbb20ccf (patch)
treeff9fff1c81352b358ac1c7a6cc35427ee6502b23 /frontends/gtk/toolbar.c
parentbd90138b482c8561927c2d6a75c172415e583a16 (diff)
downloadnetsurf-869c16dae60b519013bde67c443ce737bbb20ccf.tar.gz
netsurf-869c16dae60b519013bde67c443ce737bbb20ccf.tar.bz2
cleanup toolbar warnings
Diffstat (limited to 'frontends/gtk/toolbar.c')
-rw-r--r--frontends/gtk/toolbar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/gtk/toolbar.c b/frontends/gtk/toolbar.c
index 209f8d7a1..7ebf2ebdb 100644
--- a/frontends/gtk/toolbar.c
+++ b/frontends/gtk/toolbar.c
@@ -34,6 +34,7 @@
#include "utils/file.h"
#include "utils/nsurl.h"
+#include "gtk/completion.h"
#include "gtk/gui.h"
#include "gtk/warn.h"
#include "gtk/search.h"
@@ -1905,8 +1906,8 @@ toolbar_connect_signal(struct nsgtk_toolbar *tb, nsgtk_toolbar_button itemid)
"changed",
G_CALLBACK(url_entry_changed_cb),
tb);
- }
-
+ }
+ break;
}
return NSERROR_OK;
@@ -1915,7 +1916,7 @@ toolbar_connect_signal(struct nsgtk_toolbar *tb, nsgtk_toolbar_button itemid)
/**
* connect all signals to widgets in a toolbar
*/
-nserror toolbar_connect_signals(struct nsgtk_toolbar *tb)
+static nserror toolbar_connect_signals(struct nsgtk_toolbar *tb)
{
int location; /* location index */
nsgtk_toolbar_button itemid; /* item id */
@@ -2061,7 +2062,6 @@ nserror nsgtk_toolbar_update(struct nsgtk_toolbar *tb)
nserror nsgtk_toolbar_throbber(struct nsgtk_toolbar *tb, bool active)
{
nserror res;
- GdkPixbuf *pixbuf;
/* when activating the throbber simply schedule the next frame update */
if (active) {