diff options
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index edb2b3555a..b4af6a7a26 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -471,8 +471,7 @@ gtk_dialog_add_button (GtkDialog *dialog, g_return_val_if_fail (GTK_IS_DIALOG (dialog), NULL); g_return_val_if_fail (button_text != NULL, NULL); - button = gtk_button_new_stock (button_text, - gtk_window_get_default_accel_group (GTK_WINDOW (dialog))); + button = gtk_button_new_from_stock (button_text); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); |