aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-12-17 19:04:44 +0800
committerBenjamin Otte <otte@gnome.org>2009-12-17 19:05:41 +0800
commit092c7136695555fbd44c51e37c36202c7a2cb832 (patch)
treeefe564141d900a048073e641088cfa1fa79ee1af /embed
parenta0c740454dc8e649124b76a1bd15700ceaf51a72 (diff)
downloadgsoc2013-epiphany-092c7136695555fbd44c51e37c36202c7a2cb832.tar
gsoc2013-epiphany-092c7136695555fbd44c51e37c36202c7a2cb832.tar.gz
gsoc2013-epiphany-092c7136695555fbd44c51e37c36202c7a2cb832.tar.bz2
gsoc2013-epiphany-092c7136695555fbd44c51e37c36202c7a2cb832.tar.lz
gsoc2013-epiphany-092c7136695555fbd44c51e37c36202c7a2cb832.tar.xz
gsoc2013-epiphany-092c7136695555fbd44c51e37c36202c7a2cb832.tar.zst
gsoc2013-epiphany-092c7136695555fbd44c51e37c36202c7a2cb832.zip
Allow dialog buttons be the default
Fixes crashers when we actually make them the default shortly afterwards.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index b839c6baf..53ae59ce4 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);