Commit 97c07a14 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Move the call to gtk_text_view_end_selection_drag() from

2006-03-28  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_do_popup)
	(gtk_text_view_grab_notify): Move the call to
	gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
	to gtk_text_view_grab_notify, so that it works not only
	for the text views own popup, but also for other ways in which
	we might become grab-shadowed during a selection drag.
	(#74620, Li Yuan)
parent b8157407
2006-03-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_do_popup)
(gtk_text_view_grab_notify): Move the call to
gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
to gtk_text_view_grab_notify, so that it works not only
for the text views own popup, but also for other ways in which
we might become grab-shadowed during a selection drag.
(#74620, Li Yuan)
2006-03-28 Sven Herzberg <herzi@gnome-de.org>
reviewed by: Tim Janik
......
2006-03-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_do_popup)
(gtk_text_view_grab_notify): Move the call to
gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
to gtk_text_view_grab_notify, so that it works not only
for the text views own popup, but also for other ways in which
we might become grab-shadowed during a selection drag.
(#74620, Li Yuan)
2006-03-28 Sven Herzberg <herzi@gnome-de.org>
reviewed by: Tim Janik
......
......@@ -3720,7 +3720,10 @@ gtk_text_view_grab_notify (GtkWidget *widget,
gboolean was_grabbed)
{
if (!was_grabbed)
gtk_text_view_unobscure_mouse_cursor (GTK_TEXT_VIEW (widget));
{
gtk_text_view_end_selection_drag (GTK_TEXT_VIEW (widget), NULL);
gtk_text_view_unobscure_mouse_cursor (GTK_TEXT_VIEW (widget));
}
}
......@@ -7314,9 +7317,6 @@ gtk_text_view_do_popup (GtkTextView *text_view,
{
PopupInfo *info = g_new (PopupInfo, 1);
/* should not need this, see http://bugzilla.gnome.org/show_bug.cgi?id=74620 */
gtk_text_view_end_selection_drag (text_view, event);
/* In order to know what entries we should make sensitive, we
* ask for the current targets of the clipboard, and when
* we get them, then we actually pop up the menu.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment