mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 23:24:16 +00:00
Minor cleanups
This commit is contained in:
parent
a4560cdfbb
commit
2c6c0fe329
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user