diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2009-12-29 14:06:30 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@gnome.org> | 2009-12-30 04:20:43 +0800 |
commit | abeb7b173142a8bbc1df66b08cebee20be92112b (patch) | |
tree | e8f6051ffd94ad9ff1da30b3a2d8e6850b0fbc77 /embed/ephy-embed.c | |
parent | 49916720de793de370a6aa8f44e2264078599451 (diff) | |
download | gsoc2013-epiphany-abeb7b173142a8bbc1df66b08cebee20be92112b.tar gsoc2013-epiphany-abeb7b173142a8bbc1df66b08cebee20be92112b.tar.gz gsoc2013-epiphany-abeb7b173142a8bbc1df66b08cebee20be92112b.tar.bz2 gsoc2013-epiphany-abeb7b173142a8bbc1df66b08cebee20be92112b.tar.lz gsoc2013-epiphany-abeb7b173142a8bbc1df66b08cebee20be92112b.tar.xz gsoc2013-epiphany-abeb7b173142a8bbc1df66b08cebee20be92112b.tar.zst gsoc2013-epiphany-abeb7b173142a8bbc1df66b08cebee20be92112b.zip |
Minor style fixes in downloads code.
Bug #594192
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index f44694772..249576ef3 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -744,7 +744,8 @@ confirm_action_from_mime (WebKitWebView *web_view, 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); + gtk_dialog_add_action_widget (GTK_DIALOG (dialog), + button, DOWNLOAD_ACTION_DOWNLOAD); gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); @@ -753,9 +754,9 @@ confirm_action_from_mime (WebKitWebView *web_view, gtk_window_set_icon_name (GTK_WINDOW (dialog), EPHY_STOCK_EPHY); - default_response = action == DOWNLOAD_ACTION_NONE - ? (int) GTK_RESPONSE_CANCEL - : (int) action; + default_response = (action == DOWNLOAD_ACTION_NONE) ? + (int) GTK_RESPONSE_CANCEL : (int) action; + gtk_dialog_set_default_response (GTK_DIALOG (dialog), default_response); g_object_set_data (G_OBJECT (dialog), "webkit-view", web_view); |