[libadwaita/wip/exalm/deprecation: 6/6] tab-box: Use gtk_drop_target_get_current_drop() instead of get_drop()




commit 267f07206685ab0bb3e014562245536fe7d081b8
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jul 20 13:43:55 2021 +0500

    tab-box: Use gtk_drop_target_get_current_drop() instead of get_drop()
    
    Fix a deprecation warning.

 src/adw-tab-box.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab-box.c b/src/adw-tab-box.c
index 0967c7c0..84b2302d 100644
--- a/src/adw-tab-box.c
+++ b/src/adw-tab-box.c
@@ -2109,7 +2109,7 @@ remove_placeholder (AdwTabBox *self)
 static inline AdwTabBox *
 get_source_tab_box (GtkDropTarget *target)
 {
-  GdkDrop *drop = gtk_drop_target_get_drop (target);
+  GdkDrop *drop = gtk_drop_target_get_current_drop (target);
   GdkDrag *drag = gdk_drop_get_drag (drop);
 
   if (!drag)


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