mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-16 20:07:52 +01:00
Implemented toggle inputbar/statusbar
This commit is contained in:
parent
9c27ab49e8
commit
c41f945994
1 changed files with 18 additions and 0 deletions
18
shortcuts.c
18
shortcuts.c
|
@ -208,6 +208,15 @@ sc_toggle_index(girara_session_t* session, girara_argument_t* argument, unsigned
|
||||||
bool
|
bool
|
||||||
sc_toggle_inputbar(girara_session_t* session, girara_argument_t* argument, unsigned int t)
|
sc_toggle_inputbar(girara_session_t* session, girara_argument_t* argument, unsigned int t)
|
||||||
{
|
{
|
||||||
|
if (session == NULL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(GTK_WIDGET_VISIBLE(GTK_WIDGET(session->gtk.inputbar)))
|
||||||
|
gtk_widget_hide(GTK_WIDGET(session->gtk.inputbar));
|
||||||
|
else
|
||||||
|
gtk_widget_show(GTK_WIDGET(session->gtk.inputbar));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,6 +243,15 @@ sc_toggle_fullscreen(girara_session_t* session, girara_argument_t* argument, uns
|
||||||
bool
|
bool
|
||||||
sc_toggle_statusbar(girara_session_t* session, girara_argument_t* argument, unsigned int t)
|
sc_toggle_statusbar(girara_session_t* session, girara_argument_t* argument, unsigned int t)
|
||||||
{
|
{
|
||||||
|
if (session == NULL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(GTK_WIDGET_VISIBLE(GTK_WIDGET(session->gtk.statusbar)))
|
||||||
|
gtk_widget_hide(GTK_WIDGET(session->gtk.statusbar));
|
||||||
|
else
|
||||||
|
gtk_widget_show(GTK_WIDGET(session->gtk.statusbar));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue