Commit d7adc4c583b9504acf334b85d92540df934e95d2

Authored by Perry Werneck
1 parent 61f7422d
Exists in master and in 1 other branch develop

Fixing button focus issue on dialog box.

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
src/dialogs/popups.c
... ... @@ -156,6 +156,12 @@
156 156 // Set check button
157 157 GtkWidget * dont_ask = gtk_check_button_new_with_label(_("Don't ask again"));
158 158  
  159 + gtk_widget_set_can_focus(dont_ask,FALSE);
  160 + gtk_widget_set_can_default(dont_ask,FALSE);
  161 +#if GTK_CHECK_VERSION(3,20,0)
  162 + gtk_widget_set_focus_on_click(dont_ask,FALSE);
  163 +#endif // GTK 3,20,0
  164 +
159 165 gtk_widget_set_valign(dont_ask, GTK_ALIGN_BASELINE);
160 166 gtk_widget_set_halign(dont_ask, GTK_ALIGN_START);
161 167  
... ...