mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:53:46 +01:00
Hide notification area in sc_focus_inputbar
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com> Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
This commit is contained in:
parent
0c48f8267e
commit
48448c6507
@ -47,6 +47,10 @@ sc_focus_inputbar(girara_session_t* session, girara_argument_t* argument, unsign
|
||||
gtk_widget_show(GTK_WIDGET(session->gtk.inputbar));
|
||||
}
|
||||
|
||||
if (gtk_widget_get_visible(GTK_WIDGET(session->gtk.notification_area))) {
|
||||
gtk_widget_hide(GTK_WIDGET(session->gtk.notification_area));
|
||||
}
|
||||
|
||||
if (argument->data) {
|
||||
gtk_entry_set_text(session->gtk.inputbar, (char*) argument->data);
|
||||
gtk_widget_grab_focus(GTK_WIDGET(session->gtk.inputbar));
|
||||
|
Loading…
Reference in New Issue
Block a user