[epiphany] lib: fix a couple of return values



commit a3dfd911b7faf7eabc0d8ac45aae4259f5e2de0e
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Tue Jan 14 17:51:24 2014 +0200

    lib: fix a couple of return values

 lib/ephy-file-helpers.c            |    4 +++-
 lib/widgets/ephy-download-widget.c |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index c4b07fb..009a057 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -932,6 +932,8 @@ ephy_file_delete_uri (const char *uri)
  * @dest_uri: URI of the destination
  *
  * Move from source_uri to dest_uri, overwriting if necessary.
+ *
+ * Returns: %TRUE on successful move, %FALSE otherwise.
  */
 gboolean
 ephy_file_move_uri (const char *source_uri, const char *dest_uri)
@@ -940,7 +942,7 @@ ephy_file_move_uri (const char *source_uri, const char *dest_uri)
        GFile *dest;
        gboolean ret;
 
-       g_return_if_fail (source_uri && dest_uri);
+       g_return_val_if_fail (source_uri && dest_uri, FALSE);
 
        src = g_file_new_for_uri (source_uri);
        dest = g_file_new_for_uri (dest_uri);
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c
index f939099..b6c557c 100644
--- a/lib/widgets/ephy-download-widget.c
+++ b/lib/widgets/ephy-download-widget.c
@@ -426,7 +426,7 @@ static void
 ephy_download_widget_set_download (EphyDownloadWidget *widget,
                                    EphyDownload       *download)
 {
-  g_return_val_if_fail (EPHY_IS_DOWNLOAD_WIDGET (widget), NULL);
+  g_return_if_fail (EPHY_IS_DOWNLOAD_WIDGET (widget));
 
   if (widget->priv->download == download)
     return;


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