[epiphany] Allow dialog buttons be the default
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] Allow dialog buttons be the default
- Date: Thu, 17 Dec 2009 11:13:43 +0000 (UTC)
commit 092c7136695555fbd44c51e37c36202c7a2cb832
Author: Benjamin Otte <otte gnome org>
Date: Thu Dec 17 12:04:44 2009 +0100
Allow dialog buttons be the default
Fixes crashers when we actually make them the default shortly
afterwards.
embed/ephy-embed.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index b839c6b..53ae59c 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -685,6 +685,7 @@ confirm_action_from_mime (WebKitWebView *web_view,
button = gtk_button_new_with_mnemonic (_("_Save As..."));
image = gtk_image_new_from_stock (GTK_STOCK_SAVE_AS, GTK_ICON_SIZE_BUTTON);
gtk_button_set_image (GTK_BUTTON (button), image);
+ gtk_widget_set_can_default (button, TRUE);
/* don't show the image! see bug #307818 */
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, DOWNLOAD_ACTION_DOWNLOAD);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]