Lines Matching defs:cursor
36 #include "sp-cursor.h"
94 , cursor(NULL)
120 if (this->cursor != NULL) {
122 g_object_unref(this->cursor);
124 gdk_cursor_unref(this->cursor);
126 this->cursor = NULL;
144 * Set the cursor to a standard GDK cursor
150 GdkCursor *cursor = gdk_cursor_new_for_display(display, cursor_type);
153 if (cursor) {
154 gdk_window_set_cursor (gtk_widget_get_window (w), cursor);
155 g_object_unref (cursor);
158 gdk_window_set_cursor (gtk_widget_get_window (w), cursor);
159 gdk_cursor_unref (cursor);
165 * Recreates and draws cursor on desktop related to ToolBase.
190 if (this->cursor) {
192 g_object_unref(this->cursor);
194 gdk_cursor_unref(this->cursor);
197 this->cursor = gdk_cursor_new_from_pixbuf(display, pixbuf, this->hot_x, this->hot_y);
204 if (this->cursor) {
206 g_object_unref(this->cursor);
208 gdk_cursor_unref(this->cursor);
211 this->cursor = gdk_cursor_new_from_pixbuf(display,
217 gdk_window_set_cursor(gtk_widget_get_window (w), this->cursor);
225 * Redraws mouse cursor, at the moment.
530 gdk_window_set_cursor(gtk_widget_get_window (w), this->cursor);
739 gdk_window_set_cursor(gtk_widget_get_window (w), this->cursor);