mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-31 08:34:56 +01:00
Replace visible check
This commit is contained in:
parent
165cedc275
commit
c2253a975d
1 changed files with 1 additions and 5 deletions
|
@ -1998,17 +1998,13 @@ cmd_info(int argc, char** argv)
|
||||||
gtk_widget_show_all(Zathura.UI.information);
|
gtk_widget_show_all(Zathura.UI.information);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean show = TRUE;
|
if(!gtk_widget_get_visible(GTK_WIDGET(Zathura.UI.information)))
|
||||||
|
|
||||||
if(show)
|
|
||||||
switch_view(Zathura.UI.information);
|
switch_view(Zathura.UI.information);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch_view(Zathura.UI.drawing_area);
|
switch_view(Zathura.UI.drawing_area);
|
||||||
}
|
}
|
||||||
|
|
||||||
show = !show;
|
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue