gail tests: connect to property-change directly
This commit is contained in:
parent
46475cf89b
commit
2d9df97e69
5 changed files with 10 additions and 10 deletions
|
|
@ -103,8 +103,8 @@ static void _check_paned (AtkObject *obj)
|
|||
{
|
||||
done_paned = TRUE;
|
||||
}
|
||||
atk_object_connect_property_change_handler (paned_obj,
|
||||
(AtkPropertyChangeHandler*) _property_change_handler);
|
||||
g_signal_connect (paned_obj, "property-change",
|
||||
G_CALLBACK (_property_change_handler), NULL);
|
||||
g_timeout_add (2000, _test_paned, paned_obj);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,8 +165,8 @@ _add_handler (AtkObject *obj)
|
|||
}
|
||||
if (!found)
|
||||
{
|
||||
atk_object_connect_property_change_handler (obj,
|
||||
(AtkPropertyChangeHandler*) _property_change_handler);
|
||||
g_signal_connect (obj, "property-change",
|
||||
G_CALLBACK (_property_change_handler), NULL);
|
||||
g_signal_connect (obj, "state-change",
|
||||
(GCallback) _state_changed, NULL);
|
||||
if (ATK_IS_SELECTION (obj))
|
||||
|
|
|
|||
|
|
@ -91,8 +91,8 @@ static void _check_statusbar (AtkObject *obj)
|
|||
g_cclosure_new (G_CALLBACK (_notify_handler),
|
||||
NULL, NULL),
|
||||
FALSE);
|
||||
atk_object_connect_property_change_handler (statusbar,
|
||||
(AtkPropertyChangeHandler*) _property_change_handler);
|
||||
g_signal_connect (statusbar, "property-change",
|
||||
G_CALLBACK (_property_change_handler), NULL);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,8 +195,8 @@ static void _check_table (AtkObject *in_obj)
|
|||
}
|
||||
g_table = ATK_TABLE(obj);
|
||||
|
||||
atk_object_connect_property_change_handler (obj,
|
||||
(AtkPropertyChangeHandler*) _property_change_handler);
|
||||
g_signal_connect (obj, "property-change",
|
||||
G_CALLBACK (_property_change_handler), NULL);
|
||||
|
||||
current_obj = obj;
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -96,8 +96,8 @@ static void _add_handler (AtkObject *obj)
|
|||
}
|
||||
if (!found)
|
||||
{
|
||||
atk_object_connect_property_change_handler (obj,
|
||||
(AtkPropertyChangeHandler*) _value_change_handler);
|
||||
g_signal_connect (obj, "property-change",
|
||||
G_CALLBACK (_value_change_handler), NULL);
|
||||
g_ptr_array_add (obj_array, obj);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue