[libgd] notification: Use G_SOURCE_CONTINUE/REMOVE for clarity



commit 0c1d758795e6850eaaff7803d73e317d3e3c93d2
Author: Kalev Lember <kalevlember gmail com>
Date:   Fri Feb 27 16:43:07 2015 +0100

    notification: Use G_SOURCE_CONTINUE/REMOVE for clarity
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710297

 libgd/gd-notification.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgd/gd-notification.c b/libgd/gd-notification.c
index 7d36770..6bf2ef0 100644
--- a/libgd/gd-notification.c
+++ b/libgd/gd-notification.c
@@ -284,14 +284,14 @@ animation_timeout_cb (gpointer user_data)
       gdk_window_move (priv->bin_window,
                        0,
                        -allocation.height + priv->animate_y);
-    return TRUE;
+    return G_SOURCE_CONTINUE;
   }
 
   if (priv->dismissed && priv->animate_y == 0)
     gtk_widget_destroy (GTK_WIDGET (notification));
 
   priv->animate_timeout = 0;
-  return FALSE;
+  return G_SOURCE_REMOVE;
 }
 
 static void
@@ -765,7 +765,7 @@ gd_notification_timeout_cb (gpointer user_data)
 
   gd_notification_dismiss (notification);
 
-  return FALSE;
+  return G_SOURCE_REMOVE;
 }
 
 void


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