[gtk/dnd-gestures-2: 3/14] listbox: Stop using gtk_drag_(un)highlight
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 3/14] listbox: Stop using gtk_drag_(un)highlight
- Date: Wed, 8 Jan 2020 21:37:02 +0000 (UTC)
commit 87c8e1b31480a896a7131500290666f2f2a7c023
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]