eog r4520 - in trunk: . src
- From: csaavedra svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4520 - in trunk: . src
- Date: Sun, 6 Apr 2008 02:42:44 +0100 (BST)
Author: csaavedra
Date: Sun Apr 6 02:42:44 2008
New Revision: 4520
URL: http://svn.gnome.org/viewvc/eog?rev=4520&view=rev
Log:
2008-04-05 Claudio Saavedra <csaavedra gnome org>
* src/eog-print-preview.c: (eog_print_preview_new),
(motion_notify_event_cb): Use the fleur cursor while
hovering the image in the preview for better feedback.
Modified:
trunk/ChangeLog
trunk/src/eog-print-preview.c
Modified: trunk/src/eog-print-preview.c
==============================================================================
--- trunk/src/eog-print-preview.c (original)
+++ trunk/src/eog-print-preview.c Sun Apr 6 02:42:44 2008
@@ -514,8 +514,7 @@
gtk_widget_set_events (area,
GDK_EXPOSURE_MASK |
- GDK_POINTER_MOTION_HINT_MASK |
- GDK_BUTTON1_MOTION_MASK |
+ GDK_POINTER_MOTION_MASK |
GDK_BUTTON_PRESS_MASK |
GDK_BUTTON_RELEASE_MASK |
GDK_KEY_PRESS_MASK);
@@ -951,6 +950,16 @@
g_signal_emit (G_OBJECT (user_data),
preview_signals
[SIGNAL_IMAGE_MOVED], 0);
+ } else {
+ if (press_inside_image_area (EOG_PRINT_PREVIEW (user_data), event->x, event->y)) {
+ GdkCursor *cursor;
+ cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
+ GDK_FLEUR);
+ gdk_window_set_cursor (widget->window, cursor);
+ gdk_cursor_unref (cursor);
+ } else {
+ gdk_window_set_cursor (widget->window, NULL);
+ }
}
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]