From 6c62b0a490428aea7a3974b96871851477c81deb Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Thu, 01 Feb 2007 11:08:45 +0000 Subject: Do not start an image drag and drop operation when pointer is on text, so 2007-02-01 Carlos Garcia Campos * shell/ev-view.c: (ev_view_button_press_event): Do not start an image drag and drop operation when pointer is on text, so that we can select text when the whole background is an image. svn path=/trunk/; revision=2283 --- (limited to 'shell') diff --git a/shell/ev-view.c b/shell/ev-view.c index 676d08d..0186a02 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -2004,7 +2004,8 @@ ev_view_button_press_event (GtkWidget *widget, } gtk_widget_queue_draw (widget); - } else if ((image = ev_view_get_image_at_location (view, event->x, event->y))) { + } else if (!location_in_text (view, event->x + view->scroll_x, event->y + view->scroll_y) && + (image = ev_view_get_image_at_location (view, event->x, event->y))) { if (view->image_dnd_info.image) g_object_unref (view->image_dnd_info.image); view->image_dnd_info.image = g_object_ref (image); -- cgit v0.9.1