dialog: remove suggested action class when changing default action

So that we don't have multiple widgets with the style class set
to suggested-action.
This commit is contained in:
William Jon McCann 2014-02-27 09:09:28 -05:00
parent fb8f36f34d
commit 2cc1bf4edf

View File

@ -1127,6 +1127,8 @@ gtk_dialog_set_default_response (GtkDialog *dialog,
gtk_widget_grab_default (widget);
gtk_style_context_add_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_SUGGESTED_ACTION);
}
else
gtk_style_context_remove_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_SUGGESTED_ACTION);
tmp_list = g_list_next (tmp_list);
}