dialog: Let GtkButton manage its style classes

A button created using gtk_button_new_with_label will already have the
text-button style class applied.
This commit is contained in:
Timm Bäder 2016-10-29 10:16:03 +02:00
parent 01723fa02f
commit 86e94d0e0f

View File

@ -927,7 +927,6 @@ gtk_dialog_add_button (GtkDialog *dialog,
button = gtk_button_new_with_label (button_text);
gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
gtk_style_context_add_class (gtk_widget_get_style_context (button), "text-button");
gtk_widget_set_can_default (button, TRUE);
gtk_widget_show (button);