[gimp] app: gimp_thumb_box_take_file() must accept a NULL file



commit 43e9a79ef941bcd65df7e3356a4e83eac53f17d1
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jul 8 21:40:17 2014 +0200

    app: gimp_thumb_box_take_file() must accept a NULL file

 app/widgets/gimpthumbbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpthumbbox.c b/app/widgets/gimpthumbbox.c
index 01909df..1909e32 100644
--- a/app/widgets/gimpthumbbox.c
+++ b/app/widgets/gimpthumbbox.c
@@ -447,7 +447,7 @@ gimp_thumb_box_take_file (GimpThumbBox *box,
                           GFile        *file)
 {
   g_return_if_fail (GIMP_IS_THUMB_BOX (box));
-  g_return_if_fail (G_IS_FILE (file));
+  g_return_if_fail (file == NULL || G_IS_FILE (file));
 
   if (box->idle_id)
     {


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