[gtk/dnd-gestures-2: 56/69] listbox: Remove unhighlighting



commit 18e7ad615d55e9f1eaf191239e63f8904af2b420
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 2 09:37:43 2020 -0500

    listbox: Remove unhighlighting
    
    This will have to be done differently, if necessary.

 gtk/gtklistbox.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 0a85405d5b..90205f992a 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -25,7 +25,7 @@
 #include "gtkbuildable.h"
 #include "gtkcontainerprivate.h"
 #include "gtkcssnodeprivate.h"
-#include "gtkdnd.h"
+#include "gtkdragdest.h"
 #include "gtkgestureclick.h"
 #include "gtkintl.h"
 #include "gtkmain.h"
@@ -264,8 +264,6 @@ static void                 gtk_list_box_size_allocate                (GtkWidget
                                                                        int                  width,
                                                                        int                  height,
                                                                        int                  baseline);
-static void                 gtk_list_box_drag_leave                   (GtkWidget           *widget,
-                                                                       GdkDrop             *drop);
 static void                 gtk_list_box_activate_cursor_row          (GtkListBox          *box);
 static void                 gtk_list_box_toggle_cursor_row            (GtkListBox          *box);
 static void                 gtk_list_box_move_cursor                  (GtkListBox          *box,
@@ -452,7 +450,6 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
   widget_class->get_request_mode = gtk_list_box_get_request_mode;
   widget_class->measure = gtk_list_box_measure;
   widget_class->size_allocate = gtk_list_box_size_allocate;
-  widget_class->drag_leave = gtk_list_box_drag_leave;
   container_class->add = gtk_list_box_add;
   container_class->remove = gtk_list_box_remove;
   container_class->forall = gtk_list_box_forall;
@@ -2761,13 +2758,6 @@ gtk_list_box_drag_highlight_row (GtkListBox    *box,
   priv->drag_highlighted_row = g_object_ref (row);
 }
 
-static void
-gtk_list_box_drag_leave (GtkWidget *widget,
-                         GdkDrop   *drop)
-{
-  gtk_list_box_drag_unhighlight_row (GTK_LIST_BOX (widget));
-}
-
 static void
 gtk_list_box_activate_cursor_row (GtkListBox *box)
 {


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