Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-02-01 11:08:45 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-02-01 11:08:45 (GMT)
commit6c62b0a490428aea7a3974b96871851477c81deb (patch)
treed684e73e6240bd7d5881fc3790367c6e49ec586c /shell
parent82f0c287b85ccb54a8761718c1ba95f32168d89f (diff)
Do not start an image drag and drop operation when pointer is on text, so
2007-02-01 Carlos Garcia Campos <carlosgc@gnome.org> * 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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c3
1 files changed, 2 insertions, 1 deletions
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);