diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-09-04 19:23:06 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-09-04 19:23:06 +0100 |
commit | e15ab0a277e3cb17e6662720652ec34c55437c2b (patch) | |
tree | 21c49c2ef83bfd61d9e7031259b1c32de7233791 /frontends/gtk/toolbar.c | |
parent | acf6572fe0c62397fecf2665d2beec00a5d95a8e (diff) | |
download | netsurf-e15ab0a277e3cb17e6662720652ec34c55437c2b.tar.gz netsurf-e15ab0a277e3cb17e6662720652ec34c55437c2b.tar.bz2 |
make toolbar and menubar hiding work appropriately
Diffstat (limited to 'frontends/gtk/toolbar.c')
-rw-r--r-- | frontends/gtk/toolbar.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/frontends/gtk/toolbar.c b/frontends/gtk/toolbar.c index 02097ea13..f595c05d9 100644 --- a/frontends/gtk/toolbar.c +++ b/frontends/gtk/toolbar.c @@ -3758,3 +3758,16 @@ nsgtk_toolbar_item_activate(struct nsgtk_toolbar *tb, return NSERROR_OK; } + + +/* exported interface documented in toolbar.h */ +nserror nsgtk_toolbar_show(struct nsgtk_toolbar *tb, bool show) +{ + if (show) { + gtk_widget_show(GTK_WIDGET(tb->widget)); + } else { + gtk_widget_hide(GTK_WIDGET(tb->widget)); + + } + return NSERROR_OK; +} |