aboutsummaryrefslogtreecommitdiff
path: root/fastiv.c
diff options
context:
space:
mode:
Diffstat (limited to 'fastiv.c')
-rw-r--r--fastiv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fastiv.c b/fastiv.c
index 5aabd46..98dd0cb 100644
--- a/fastiv.c
+++ b/fastiv.c
@@ -438,10 +438,8 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event,
return TRUE;
case GDK_KEY_F9:
- if (gtk_widget_is_visible(g.browser_sidebar))
- gtk_widget_hide(g.browser_sidebar);
- else
- gtk_widget_show(g.browser_sidebar);
+ gtk_widget_set_visible(g.browser_sidebar,
+ !gtk_widget_is_visible(g.browser_sidebar));
return TRUE;
case GDK_KEY_F11: