mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:13:48 +01:00
Replace visible check
This commit is contained in:
parent
08f68723b6
commit
b6c5b1e5bf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user