[gtk/listview-dnd: 11/15] expander: Remove a pointless return



commit f054c317ee22d9c883570a8aaeae0b8d5643bd80
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 19 14:15:55 2020 -0400

    expander: Remove a pointless return
    
    GtkDropControllerMotion::enter does not expect
    a boolean return value, so don't provide one.

 gtk/gtkexpander.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 396c769989..0ceff8679b 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -231,7 +231,7 @@ expand_timeout (gpointer data)
   return FALSE;
 }
 
-static gboolean
+static void
 gtk_expander_drag_enter (GtkDropControllerMotion *motion,
                          double                   x,
                          double                   y,
@@ -242,8 +242,6 @@ gtk_expander_drag_enter (GtkDropControllerMotion *motion,
       expander->expand_timer = g_timeout_add (TIMEOUT_EXPAND, (GSourceFunc) expand_timeout, expander);
       g_source_set_name_by_id (expander->expand_timer, "[gtk] expand_timeout");
     }
-
-  return TRUE;
 }
 
 static void


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