summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-21 19:58:00 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-21 19:58:00 +0100
commit904397ed871c2e6bdbbe3bcc4ab1d1e46e4c2eb4 (patch)
tree279061a87bd11a38eba62075cf1ff77126a971e1 /frontends
parentb61fd439a20fbb10b4d37d9f31d049342eb3b8fc (diff)
downloadnetsurf-904397ed871c2e6bdbbe3bcc4ab1d1e46e4c2eb4.tar.gz
netsurf-904397ed871c2e6bdbbe3bcc4ab1d1e46e4c2eb4.tar.bz2
cleanup toolbar warnings
Diffstat (limited to 'frontends')
-rw-r--r--frontends/gtk/scaffolding.c1
-rw-r--r--frontends/gtk/toolbar.c8
2 files changed, 4 insertions, 5 deletions
diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c
index b52364542..5c5701177 100644
--- a/frontends/gtk/scaffolding.c
+++ b/frontends/gtk/scaffolding.c
@@ -54,7 +54,6 @@
#include "gtk/compat.h"
#include "gtk/warn.h"
#include "gtk/cookies.h"
-#include "gtk/completion.h"
#include "gtk/preferences.h"
#include "gtk/about.h"
#include "gtk/viewsource.h"
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) {