From: Matthias Clasen Date: Thu, 2 Jan 2020 14:37:43 +0000 (-0500) Subject: listbox: Remove unhighlighting X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~354^2~130 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aa276a181e33f92915957ed74c9ff905675e70fa;p=gtk4.git listbox: Remove unhighlighting This will have to be done differently, if necessary. --- 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) {