+2005-08-25 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
+ Handle theme == NULL.
+
2005-08-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
+2005-08-25 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
+ Handle theme == NULL.
+
2005-08-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
/**
* gdk_x11_display_set_cursor_theme:
* @display: a #GdkDisplay
- * @theme: the name of the cursor theme to use
+ * @theme: the name of the cursor theme to use, or %NULL to unset
+ * a previously set value
* @size: the cursor size to use
*
* Sets the cursor theme from which the images for cursor
old_theme = XcursorGetTheme (xdisplay);
old_size = XcursorGetDefaultSize (xdisplay);
- if (old_size == size &&
- old_theme && strcmp (old_theme, theme) == 0)
+ if (old_size == size &&
+ (old_theme == theme ||
+ (old_theme && theme && strcmp (old_theme, theme) == 0)))
return;
theme_serial++;