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:
Pavel Borzenkov 2011-09-02 17:58:37 +04:00 committed by Sebastian Ramacher
parent 0c48f8267e
commit 48448c6507

View File

@ -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));