[Users] [PATCH 6/8] osx: disable menu when quicksearch input field is in focus
Igor Mammedov
imammedo at redhat.com
Tue Jan 20 22:14:40 CET 2015
disable mainwindow menu when quicksearch gets focus so that
user could type in query and restore menu once quicksearch
looses focus.
Signed-off-by: Igor Mammedov <imammedo at redhat.com>
---
src/gtk/quicksearch.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gtk/quicksearch.c b/src/gtk/quicksearch.c
index 6f4dc00..048e590 100644
--- a/src/gtk/quicksearch.c
+++ b/src/gtk/quicksearch.c
@@ -256,6 +256,7 @@ static gboolean searchbar_focus_evt_in(GtkWidget *widget, GdkEventFocus *event,
QuickSearch *qs)
{
qs->has_focus = TRUE;
+ claws_mail_osx_set_empty_menu(widget);
return FALSE;
}
@@ -264,6 +265,9 @@ static gboolean searchbar_focus_evt_out(GtkWidget *widget, GdkEventFocus *event,
{
qs->has_focus = FALSE;
qs->in_typing = FALSE;
+ claws_mail_osx_set_menu(gtk_ui_manager_get_widget(
+ mainwindow_get_mainwindow()->ui_manager, "/Menu")
+ );
return FALSE;
}
--
1.9.3 (Apple Git-50)
More information about the Users
mailing list