From 635be1dfb88c01ab6a901f6e88eb3b7187d2c03b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 4 Sep 2019 19:23:06 +0100 Subject: make toolbar and menubar hiding work appropriately --- frontends/gtk/toolbar.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'frontends/gtk/toolbar.c') 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; +} -- cgit v1.2.3