comparison src/gtkutils.h @ 13469:689f652480f7

[gaim-migrate @ 15845] For cursor setting, it's the widget's window being NULL that's the problem. Passing in a NULL widget wouldn't make any sense. So, I've clarified the checks here. This fixes a couple assertion failure regressions. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 08 Mar 2006 22:03:22 +0000
parents ffd724befbf8
children a539caf502b0
comparison
equal deleted inserted replaced
13468:e4aa2648ca28 13469:689f652480f7
442 * Sets the mouse pointer for a GtkWidget. 442 * Sets the mouse pointer for a GtkWidget.
443 * 443 *
444 * After setting the cursor, the display is flushed, so the change will 444 * After setting the cursor, the display is flushed, so the change will
445 * take effect immediately. 445 * take effect immediately.
446 * 446 *
447 * If @a widget is @c NULL, this function simply returns. 447 * If the window for @a widget is @c NULL, this function simply returns.
448 * 448 *
449 * @param widget The widget for which to set the mouse pointer 449 * @param widget The widget for which to set the mouse pointer
450 * @param cursor_type The type of cursor to set 450 * @param cursor_type The type of cursor to set
451 */ 451 */
452 void gaim_gtk_set_cursor(GtkWidget *widget, GdkCursorType cursor_type); 452 void gaim_gtk_set_cursor(GtkWidget *widget, GdkCursorType cursor_type);
454 /** 454 /**
455 * Sets the mouse point for a GtkWidget back to that of its parent window. 455 * Sets the mouse point for a GtkWidget back to that of its parent window.
456 * 456 *
457 * If @a widget is @c NULL, this function simply returns. 457 * If @a widget is @c NULL, this function simply returns.
458 * 458 *
459 * @param widget The widget for which to clear the cursor 459 * If the window for @a widget is @c NULL, this function simply returns.
460 * 460 *
461 * @note The display is not flushed from this function. 461 * @note The display is not flushed from this function.
462 */ 462 */
463 void gaim_gtk_clear_cursor(GtkWidget *widget); 463 void gaim_gtk_clear_cursor(GtkWidget *widget);
464 464