Minor cleanups

This commit is contained in:
Matthias Clasen 2011-07-25 00:34:08 -04:00
parent a4560cdfbb
commit 2c6c0fe329

View File

@ -7663,12 +7663,11 @@ gtk_icon_view_item_accessible_add_state (GtkIconViewItemAccessible *item,
gboolean rc;
rc = atk_state_set_add_state (item->state_set, state_type);
/*
* The signal should only be generated if the value changed,
/* The signal should only be generated if the value changed,
* not when the item is set up. So states that are set
* initially should pass FALSE as the emit_signal argument.
*/
if (emit_signal)
{
atk_object_notify_state_change (ATK_OBJECT (item), state_type, TRUE);
@ -7690,12 +7689,11 @@ gtk_icon_view_item_accessible_remove_state (GtkIconViewItemAccessible *item,
gboolean rc;
rc = atk_state_set_remove_state (item->state_set, state_type);
/*
* The signal should only be generated if the value changed,
/* The signal should only be generated if the value changed,
* not when the item is set up. So states that are set
* initially should pass FALSE as the emit_signal argument.
*/
if (emit_signal)
{
atk_object_notify_state_change (ATK_OBJECT (item), state_type, FALSE);
@ -7718,11 +7716,9 @@ gtk_icon_view_item_accessible_is_showing (GtkIconViewItemAccessible *item)
GdkRectangle visible_rect;
gboolean is_showing;
/*
* An item is considered "SHOWING" if any part of the item is in the
* visible rectangle.
/* An item is considered "SHOWING" if any part of the item
* is in the visible rectangle.
*/
if (!GTK_IS_ICON_VIEW (item->widget))
return FALSE;