mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 17:14:56 +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
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ sc_focus_inputbar(girara_session_t* session, girara_argument_t* argument, unsign
|
||||||
gtk_widget_show(GTK_WIDGET(session->gtk.inputbar));
|
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) {
|
if (argument->data) {
|
||||||
gtk_entry_set_text(session->gtk.inputbar, (char*) argument->data);
|
gtk_entry_set_text(session->gtk.inputbar, (char*) argument->data);
|
||||||
gtk_widget_grab_focus(GTK_WIDGET(session->gtk.inputbar));
|
gtk_widget_grab_focus(GTK_WIDGET(session->gtk.inputbar));
|
||||||
|
|
Loading…
Reference in a new issue