GNOME Bugzilla – Bug 737966
Input sources, formats, languages: Add/Done buttons are not blue
Last modified: 2014-10-17 10:21:42 UTC
The add button on the Add an Input Source dialog is not blue. It has the suggested-action style class in its UI file but it's not there when viewed in GtkInspector. The Done buttons on the Formats and Languages dialogs are also not blue. I guess these are being stripped out by GTK+ (3.14.1)?
The more modern way to do these buttons would be to use <object class="GtkDialog" id="dialog1"> <child type="action"> <object class="GtkButton" id="button_cancel"> ... </object> </child> <child type="action"> <object class="GtkButton" id="button_ok"> ... </object> <child> <action-widgets> <action-widget response="cancel">button_cancel</action-widget> <action-widget response="ok" default="true">button_ok</action-widget> </action-widgets> </object> The most important part here is the default="true" which tells GTK+ which button is the default - we synchronize suggested-action with default, for dialog actions.
Created attachment 288085 [details] [review] Patch that doesn't work I tried to follow those instructions, using <child type="action"> and making sure to set the default response under <action-widgets>, but it's not working....
And it throws an error: (gnome-control-center:31871): Gtk-CRITICAL **: gtk_widget_grab_default: assertion 'gtk_widget_get_can_default (widget)' failed + <property name="can_default">True</property> fixes both the original bug and the warning.
Created attachment 288694 [details] [review] region: Make Add/Done buttons blue
Created attachment 288695 [details] [review] common: Make Done button in language chooser blue
Review of attachment 288694 [details] [review]: sure
Review of attachment 288695 [details] [review]: ++
Comment on attachment 288085 [details] [review] Patch that doesn't work D'oh.
Attachment 288694 [details] pushed as 212a4e9 - region: Make Add/Done buttons blue Attachment 288695 [details] pushed as 633af27 - common: Make Done button in language chooser blue