graveman-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Graveman-cvs] Changes to graveman/current/src/support.c


From: sylvain cresto
Subject: [Graveman-cvs] Changes to graveman/current/src/support.c
Date: Thu, 10 Feb 2005 19:53:39 -0500

Index: graveman/current/src/support.c
diff -u graveman/current/src/support.c:1.2 graveman/current/src/support.c:1.3
--- graveman/current/src/support.c:1.2  Thu Jan 20 02:57:27 2005
+++ graveman/current/src/support.c      Fri Feb 11 00:53:37 2005
@@ -26,6 +26,8 @@
 
 #include "graveman.h"
 
+static GdkCursor *_cursor = NULL;
+
 static GList *pixmaps_directories = NULL;
 
 /* Use this function to set the directory containing installed pixmaps. */
@@ -147,6 +149,21 @@
   
   return Lreturn;
 }
+
+/* gestion du curseur de la souris */
+void set_cursor(GtkWidget *Awindow, GdkCursorType Acursortype)
+{
+  _cursor = gdk_cursor_new(Acursortype);
+  gdk_window_set_cursor(GDK_WINDOW(Awindow->window), _cursor);
+  gdk_flush ();
+}
+
+void unset_cursor(GtkWidget *Awindow)
+{
+  gdk_window_set_cursor(GDK_WINDOW(Awindow->window), NULL);
+  gdk_cursor_unref(_cursor);
+}
+
 /*
  * vim:et:ts=8:sts=2:sw=2
  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]