changeset 5861:711db8ff91dd

[gaim-migrate @ 6292] There's now this neat little cursor when doing mouse gestures. Hi there, neat little cursor! You're a cute wittle cursor, aren'tcha? awww. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Jun 2003 06:46:53 +0000
parents 52d5fad43950
children d0a311def860
files plugins/gestures/stroke-draw.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/gestures/stroke-draw.c	Sat Jun 14 06:38:30 2003 +0000
+++ b/plugins/gestures/stroke-draw.c	Sat Jun 14 06:46:53 2003 +0000
@@ -105,10 +105,12 @@
 process_event (GtkWidget *widget, GdkEvent *event, gpointer data G_GNUC_UNUSED)
 {
   static GtkWidget *original_widget = NULL;
+  static GdkCursor *cursor = NULL;
+
   switch (event->type) {
     case GDK_BUTTON_PRESS:
       if (event->button.button != gstroke_get_mouse_button())
-	break;
+        break;
 
       original_widget = widget; /* remeber the widget where
                                    the stroke started */
@@ -117,8 +119,11 @@
 
       record_stroke_segment (widget);
 
+	  if (cursor == NULL)
+		  cursor = gdk_cursor_new(GDK_PENCIL);
+
       gdk_pointer_grab (widget->window, FALSE,
-			GDK_BUTTON_RELEASE_MASK, NULL, NULL,
+			GDK_BUTTON_RELEASE_MASK, NULL, cursor,
 			event->button.time);
       timer_id = gtk_timeout_add (GSTROKE_TIMEOUT_DURATION,
 				  gstroke_timeout, widget);