From c2253a975d3517f142cbdd44e4c1315ca302be90 Mon Sep 17 00:00:00 2001 From: neldoreth <mail@pwmt.org> Date: Tue, 2 Feb 2010 20:37:09 +0100 Subject: [PATCH] Replace visible check --- zathura.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zathura.c b/zathura.c index d40d91d..8cd079b 100644 --- a/zathura.c +++ b/zathura.c @@ -1998,17 +1998,13 @@ cmd_info(int argc, char** argv) gtk_widget_show_all(Zathura.UI.information); } - static gboolean show = TRUE; - - if(show) + if(!gtk_widget_get_visible(GTK_WIDGET(Zathura.UI.information))) switch_view(Zathura.UI.information); else { switch_view(Zathura.UI.drawing_area); } - show = !show; - return FALSE; }