Kaydet (Commit) 3a4b6826 authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: menubar close button shouldn't get keyboard focus

Change-Id: I6ddd512afa1e41d2dec7c92f61d65ed5bbfa9ace
üst 57d85c0e
...@@ -528,6 +528,7 @@ void GtkSalMenu::ShowCloseButton(bool bShow) ...@@ -528,6 +528,7 @@ void GtkSalMenu::ShowCloseButton(bool bShow)
gtk_button_set_relief(GTK_BUTTON(mpCloseButton), GTK_RELIEF_NONE); gtk_button_set_relief(GTK_BUTTON(mpCloseButton), GTK_RELIEF_NONE);
gtk_button_set_focus_on_click(GTK_BUTTON(mpCloseButton), false); gtk_button_set_focus_on_click(GTK_BUTTON(mpCloseButton), false);
gtk_widget_set_can_focus(mpCloseButton, false);
GtkStyleContext *pButtonContext = gtk_widget_get_style_context(GTK_WIDGET(mpCloseButton)); GtkStyleContext *pButtonContext = gtk_widget_get_style_context(GTK_WIDGET(mpCloseButton));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment