From 45cb67616a494da96eb93fa2678991b722f228fd Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Fri, 22 May 2009 18:50:33 -0300 Subject: Fix variable declaration mixed with the code. --- embed/webkit/webkit-embed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit