aboutsummaryrefslogtreecommitdiff
path: root/fastiv.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-23 14:59:25 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-23 20:50:01 +0100
commit1c40fa8adbb80197e8b911571128920b2e2b6597 (patch)
tree83de7976d4c6f137ad1a0cb64299cfc5b1ab000e /fastiv.c
parentfee901a5901d4bbacbf3ce90bcc3321a5c5e721e (diff)
downloadfiv-1c40fa8adbb80197e8b911571128920b2e2b6597.tar.gz
fiv-1c40fa8adbb80197e8b911571128920b2e2b6597.tar.xz
fiv-1c40fa8adbb80197e8b911571128920b2e2b6597.zip
Add an "Open With" context menu to browser items
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: