mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 07:30:09 +00:00
dnd: Patch up gtk_drag_get_source_widget
This is temporary until gtk_drag_dest_set users have been ported over.
This commit is contained in:
parent
303c9becf8
commit
d3fd071809
11
gtk/gtkdnd.c
11
gtk/gtkdnd.c
@ -319,14 +319,19 @@ GtkWidget *
|
||||
gtk_drag_get_source_widget (GdkDrag *drag)
|
||||
{
|
||||
GtkDragSourceInfo *info;
|
||||
GtkDragSource *source;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_DRAG (drag), NULL);
|
||||
|
||||
info = gtk_drag_get_source_info (drag, FALSE);
|
||||
if (info == NULL)
|
||||
return NULL;
|
||||
if (info)
|
||||
return info->widget;
|
||||
|
||||
return info->widget;
|
||||
source = gtk_drag_get_source (drag);
|
||||
if (source)
|
||||
return gtk_drag_source_get_origin (source);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user