[epiphany] Minor style fixes in downloads code.



commit abeb7b173142a8bbc1df66b08cebee20be92112b
Author: Diego Escalante Urrelo <diegoe gnome org>
Date:   Tue Dec 29 01:06:30 2009 -0500

    Minor style fixes in downloads code.
    
    Bug #594192

 embed/downloader-view.c |    3 ++-
 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 a2f6558..8af02a4 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 f446947..249576e 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]