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:
Owen Taylor
2002-06-13 16:04:10 +00:00
committed by Owen Taylor
parent 4d8116d641
commit 138d13b2a4
7 changed files with 39 additions and 2 deletions

View File

@@ -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.)
2002-06-13 jacob berkman <jacob@ximian.com>
* Makefile.am (EXTRA_DIST): remove po/README.tools

View File

@@ -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.)
2002-06-13 jacob berkman <jacob@ximian.com>
* Makefile.am (EXTRA_DIST): remove po/README.tools

View File

@@ -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.)
2002-06-13 jacob berkman <jacob@ximian.com>
* Makefile.am (EXTRA_DIST): remove po/README.tools

View File

@@ -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.)
2002-06-13 jacob berkman <jacob@ximian.com>
* Makefile.am (EXTRA_DIST): remove po/README.tools

View File

@@ -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.)
2002-06-13 jacob berkman <jacob@ximian.com>
* Makefile.am (EXTRA_DIST): remove po/README.tools

View File

@@ -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.)
2002-06-13 jacob berkman <jacob@ximian.com>
* Makefile.am (EXTRA_DIST): remove po/README.tools

View File

@@ -3989,7 +3989,8 @@ gtk_entry_drag_motion (GtkWidget *widget,
old_position = entry->dnd_position;
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);
suggested_action = context->suggested_action;
@@ -4018,7 +4019,7 @@ gtk_entry_drag_motion (GtkWidget *widget,
}
else
{
/* Entry not editable */
/* Entry not editable, or no text */
suggested_action = 0;
entry->dnd_position = -1;
}