Skip to content

Commit a731c11

Browse files
committed
Don't allow toolbar buttons to gain input focus.
Fixes #2961
1 parent 1c99684 commit a731c11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/nemo-toolbar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ toolbar_create_toolbutton (NemoToolbar *self,
225225
gtk_activatable_set_related_action (GTK_ACTIVATABLE (button), action);
226226
gtk_button_set_label (GTK_BUTTON (button), NULL);
227227
gtk_widget_set_tooltip_text (button, gtk_action_get_tooltip (action));
228+
gtk_widget_set_can_focus (button, FALSE);
228229
gtk_style_context_add_class (gtk_widget_get_style_context (button), GTK_STYLE_CLASS_FLAT);
229230

230231
return button;

0 commit comments

Comments
 (0)