[epiphany] downloads: Rename ephy_download_new_for_download as ephy_download_new



commit 2d5c91603bb5a7856ef940a3e3c7429f263cc9b8
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jan 8 12:28:54 2014 +0100

    downloads: Rename ephy_download_new_for_download as ephy_download_new

 embed/ephy-download.c |    8 ++++----
 embed/ephy-download.h |    5 ++---
 src/ephy-shell.c      |    2 +-
 3 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index d8e7902..355834d 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -863,7 +863,7 @@ download_failed_cb (WebKitDownload *wk_download,
 }
 
 /**
- * ephy_download_new_for_download:
+ * ephy_download_new:
  * @download: a #WebKitDownload to wrap
  * @parent: the #GtkWindow parent of the download, or %NULL
  *
@@ -872,8 +872,8 @@ download_failed_cb (WebKitDownload *wk_download,
  * Returns: an #EphyDownload.
  **/
 EphyDownload *
-ephy_download_new_for_download (WebKitDownload *download,
-                                GtkWindow *parent)
+ephy_download_new (WebKitDownload *download,
+                   GtkWindow *parent)
 {
   EphyDownload *ephy_download;
 
@@ -923,7 +923,7 @@ ephy_download_new_for_uri (const char *uri,
 
   download = webkit_web_context_download_uri (webkit_web_context_get_default (), uri);
 
-  ephy_download = ephy_download_new_for_download (download, parent);
+  ephy_download = ephy_download_new (download, parent);
   g_object_unref (download);
 
   return ephy_download;
diff --git a/embed/ephy-download.h b/embed/ephy-download.h
index cc53e2d..ae2a1b0 100644
--- a/embed/ephy-download.h
+++ b/embed/ephy-download.h
@@ -76,12 +76,11 @@ typedef enum
 
 GType         ephy_download_get_type              (void) G_GNUC_CONST;
 
-EphyDownload *ephy_download_new_for_uri           (const char *uri,
+EphyDownload *ephy_download_new                   (WebKitDownload *download,
                                                    GtkWindow *parent);
-EphyDownload *ephy_download_new_for_download      (WebKitDownload *download,
+EphyDownload *ephy_download_new_for_uri           (const char *uri,
                                                    GtkWindow *parent);
 
-
 void          ephy_download_cancel                (EphyDownload *download);
 
 void          ephy_download_set_destination_uri   (EphyDownload *download,
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 4455ebc..c6e3a55 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -551,7 +551,7 @@ download_started_cb (WebKitWebContext *web_context,
   if (!window)
     window = gtk_application_get_active_window (GTK_APPLICATION (shell));
 
-  ephy_download_new_for_download (download, window);
+  ephy_download_new (download, window);
 }
 
 static void


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