Don't return a positive status unless there is a text target in the drag.
Thu Jun 13 12:01:36 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_drag_motion): Don't return a positive status unless there is a text target in the drag. (#83386, Thomas Leonard.)
This commit is contained in:
parent
ddfd42fbb3
commit
7cf409d8c8
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jun 13 12:01:36 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
|
||||||
|
a positive status unless there is a text target in
|
||||||
|
the drag. (#83386, Thomas Leonard.)
|
||||||
|
|
||||||
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jun 13 12:01:36 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
|
||||||
|
a positive status unless there is a text target in
|
||||||
|
the drag. (#83386, Thomas Leonard.)
|
||||||
|
|
||||||
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jun 13 12:01:36 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
|
||||||
|
a positive status unless there is a text target in
|
||||||
|
the drag. (#83386, Thomas Leonard.)
|
||||||
|
|
||||||
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jun 13 12:01:36 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
|
||||||
|
a positive status unless there is a text target in
|
||||||
|
the drag. (#83386, Thomas Leonard.)
|
||||||
|
|
||||||
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jun 13 12:01:36 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
|
||||||
|
a positive status unless there is a text target in
|
||||||
|
the drag. (#83386, Thomas Leonard.)
|
||||||
|
|
||||||
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jun 13 12:01:36 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
|
||||||
|
a positive status unless there is a text target in
|
||||||
|
the drag. (#83386, Thomas Leonard.)
|
||||||
|
|
||||||
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
|
||||||
|
@ -4006,7 +4006,8 @@ gtk_entry_drag_motion (GtkWidget *widget,
|
|||||||
old_position = entry->dnd_position;
|
old_position = entry->dnd_position;
|
||||||
new_position = gtk_entry_find_position (entry, x + entry->scroll_offset);
|
new_position = gtk_entry_find_position (entry, x + entry->scroll_offset);
|
||||||
|
|
||||||
if (entry->editable)
|
if (entry->editable &&
|
||||||
|
gtk_drag_dest_find_target (widget, context, NULL) != GDK_NONE)
|
||||||
{
|
{
|
||||||
source_widget = gtk_drag_get_source_widget (context);
|
source_widget = gtk_drag_get_source_widget (context);
|
||||||
suggested_action = context->suggested_action;
|
suggested_action = context->suggested_action;
|
||||||
@ -4035,7 +4036,7 @@ gtk_entry_drag_motion (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Entry not editable */
|
/* Entry not editable, or no text */
|
||||||
suggested_action = 0;
|
suggested_action = 0;
|
||||||
entry->dnd_position = -1;
|
entry->dnd_position = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user