Fix gtk critical warning, patch by Bob.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19406 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2010-08-05 19:39:10 +00:00
parent 5cafe09b14
commit 58cc0fc913

View File

@@ -919,6 +919,7 @@ gnc_gtk_dialog_add_button (GtkWidget *dialog, const gchar *label, const gchar *s
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(button), image);
}
gtk_widget_set_can_default (button, TRUE);
gtk_widget_show_all(button);
gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button, response);
}