diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/downloader-view.c | 3 | ||||
-rw-r--r-- | embed/ephy-embed.c | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c index a2f655807..8af02a428 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -416,7 +416,8 @@ do_open_downloaded_file (DownloaderView *dv, WebKitDownload *download, gboolean gdk_display = gtk_widget_get_display (priv->window); if (open_location) { - ephy_file_browse_to (downloaded_file, gdk_x11_display_get_user_time (gdk_display)); + ephy_file_browse_to (downloaded_file, + gdk_x11_display_get_user_time (gdk_display)); } else { 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); |