[gtk/dnd-gestures-2: 167/175] listbox: Stop using gtk_drag_(un)highlight



commit 8fd47026aad2b9d08735d8eef2a198f60731c4b0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 18:45:53 2020 -0500

    listbox: Stop using gtk_drag_(un)highlight
    
    This api is going away, so just do what needs to
    be done manually.

 gtk/gtklistbox.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 90205f992a..c4d9a99545 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -2725,7 +2725,7 @@ gtk_list_box_drag_unhighlight_row (GtkListBox *box)
   if (priv->drag_highlighted_row == NULL)
     return;
 
-  gtk_drag_unhighlight (GTK_WIDGET (priv->drag_highlighted_row));
+  gtk_widget_unset_state_flags (GTK_WIDGET (priv->drag_highlighted_row), GTK_STATE_FLAG_DROP_ACTIVE);
   g_clear_object (&priv->drag_highlighted_row);
 }
 
@@ -2754,7 +2754,7 @@ gtk_list_box_drag_highlight_row (GtkListBox    *box,
     return;
 
   gtk_list_box_drag_unhighlight_row (box);
-  gtk_drag_highlight (GTK_WIDGET (row));
+  gtk_widget_set_state_flags (GTK_WIDGET (row), GTK_STATE_FLAG_DROP_ACTIVE, FALSE);
   priv->drag_highlighted_row = g_object_ref (row);
 }
 


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