diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-21 19:58:00 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-09-21 10:53:41 +0100 |
commit | 869c16dae60b519013bde67c443ce737bbb20ccf (patch) | |
tree | ff9fff1c81352b358ac1c7a6cc35427ee6502b23 /frontends | |
parent | bd90138b482c8561927c2d6a75c172415e583a16 (diff) | |
download | netsurf-869c16dae60b519013bde67c443ce737bbb20ccf.tar.gz netsurf-869c16dae60b519013bde67c443ce737bbb20ccf.tar.bz2 |
cleanup toolbar warnings
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/gtk/scaffolding.c | 1 | ||||
-rw-r--r-- | frontends/gtk/toolbar.c | 8 |
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) { |