summaryrefslogtreecommitdiff
path: root/gtk/gtkdialog.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-27 09:09:28 -0500
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-27 09:09:28 -0500
commit2cc1bf4edf46b326d5b84776881e0cdcd750aefb (patch)
tree473cffb46fd0fd202b79fe62b58f5be68a742d07 /gtk/gtkdialog.c
parentfb8f36f34d3940d90d0bbc3569edb5995cbb0283 (diff)
downloadgtk+-2cc1bf4edf46b326d5b84776881e0cdcd750aefb.tar.gz
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.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r--gtk/gtkdialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 04ae4a98b0..8e5797fbaf 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -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);
}