aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2009-12-29 14:06:30 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2009-12-30 04:20:43 +0800
commitabeb7b173142a8bbc1df66b08cebee20be92112b (patch)
treee8f6051ffd94ad9ff1da30b3a2d8e6850b0fbc77
parent49916720de793de370a6aa8f44e2264078599451 (diff)
downloadgsoc2013-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
-rw-r--r--embed/downloader-view.c3
-rw-r--r--embed/ephy-embed.c9
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);