aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorGustavo Noronha Silva <kov@debian.org>2009-05-23 05:50:33 +0800
committerGustavo Noronha Silva <kov@debian.org>2009-05-23 05:50:33 +0800
commit45cb67616a494da96eb93fa2678991b722f228fd (patch)
tree0126923f0fd643707dfd5fa6c7f066ebbc11966e /embed
parent9365ffd004d6260e656453143eb32f333ae888a2 (diff)
downloadgsoc2013-epiphany-45cb67616a494da96eb93fa2678991b722f228fd.tar
gsoc2013-epiphany-45cb67616a494da96eb93fa2678991b722f228fd.tar.gz
gsoc2013-epiphany-45cb67616a494da96eb93fa2678991b722f228fd.tar.bz2
gsoc2013-epiphany-45cb67616a494da96eb93fa2678991b722f228fd.tar.lz
gsoc2013-epiphany-45cb67616a494da96eb93fa2678991b722f228fd.tar.xz
gsoc2013-epiphany-45cb67616a494da96eb93fa2678991b722f228fd.tar.zst
gsoc2013-epiphany-45cb67616a494da96eb93fa2678991b722f228fd.zip
Fix variable declaration mixed with the code.
Diffstat (limited to 'embed')
-rw-r--r--embed/webkit/webkit-embed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index a04abc245..481e51432 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -585,6 +585,7 @@ confirm_action_from_mime (WebKitWebView *web_view,
EphyMimePermission mime_permission;
GAppInfo *helper_app;
const char *suggested_filename;
+ int default_response;
parent_window = gtk_widget_get_toplevel (GTK_WIDGET(web_view));
if (!GTK_WIDGET_TOPLEVEL (parent_window))
@@ -667,7 +668,7 @@ confirm_action_from_mime (WebKitWebView *web_view,
gtk_window_set_icon_name (GTK_WINDOW (dialog), EPHY_STOCK_EPHY);
- int default_response = action == DOWNLOAD_ACTION_NONE
+ default_response = action == DOWNLOAD_ACTION_NONE
? (int) GTK_RESPONSE_CANCEL
: (int) action;
gtk_dialog_set_default_response (GTK_DIALOG (dialog), default_response);