mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Avoid another case of treating None as an atom
This commit is contained in:
parent
478cc88f8d
commit
96912b564f
@ -1919,9 +1919,14 @@ static GdkDragAction
|
||||
xdnd_action_from_atom (GdkDisplay *display,
|
||||
Atom xatom)
|
||||
{
|
||||
GdkAtom atom = gdk_x11_xatom_to_atom_for_display (display, xatom);
|
||||
GdkAtom atom;
|
||||
gint i;
|
||||
|
||||
if (xatom == None)
|
||||
return 0;
|
||||
|
||||
atom = gdk_x11_xatom_to_atom_for_display (display, xatom);
|
||||
|
||||
if (!xdnd_actions_initialized)
|
||||
xdnd_initialize_actions();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user