Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
8e28e22b
Commit
8e28e22b
authored
Jun 28, 2011
by
Benjamin Otte
Committed by
Matthias Clasen
Jul 05, 2011
Browse files
a11y: Do actions on cells immediately
No idle handlers, please.
parent
52c0933b
Changes
2
Hide whitespace changes
Inline
Side-by-side
gtk/a11y/gailcell.c
View file @
8e28e22b
...
...
@@ -60,7 +60,6 @@ static const gchar *
gint
index
);
static
gboolean
gail_cell_action_do_action
(
AtkAction
*
action
,
gint
index
);
static
gboolean
idle_do_action
(
gpointer
data
);
static
void
atk_component_interface_init
(
AtkComponentIface
*
iface
);
static
void
gail_cell_get_extents
(
AtkComponent
*
component
,
...
...
@@ -148,11 +147,6 @@ gail_cell_object_finalize (GObject *obj)
g_list_foreach
(
cell
->
action_list
,
_gail_cell_destroy_action_info
,
NULL
);
g_list_free
(
cell
->
action_list
);
}
if
(
cell
->
action_idle_handler
)
{
g_source_remove
(
cell
->
action_idle_handler
);
cell
->
action_idle_handler
=
0
;
}
relation_set
=
atk_object_ref_relation_set
(
ATK_OBJECT
(
obj
));
if
(
ATK_IS_RELATION_SET
(
relation_set
))
{
...
...
@@ -442,23 +436,10 @@ gail_cell_action_do_action (AtkAction *action,
return
FALSE
;
if
(
info
->
do_action_func
==
NULL
)
return
FALSE
;
if
(
cell
->
action_idle_handler
)
return
FALSE
;
cell
->
action_func
=
info
->
do_action_func
;
cell
->
action_idle_handler
=
gdk_threads_add_idle
(
idle_do_action
,
cell
);
return
TRUE
;
}
static
gboolean
idle_do_action
(
gpointer
data
)
{
GailCell
*
cell
;
cell
=
GAIL_CELL
(
data
);
cell
->
action_idle_handler
=
0
;
cell
->
action_func
(
cell
);
info
->
do_action_func
(
cell
);
return
FALS
E
;
return
TRU
E
;
}
static
void
...
...
gtk/a11y/gailcell.h
View file @
8e28e22b
...
...
@@ -49,8 +49,6 @@ struct _GailCell
AtkStateSet
*
state_set
;
GList
*
action_list
;
void
(
*
refresh_index
)
(
GailCell
*
cell
);
gint
action_idle_handler
;
ACTION_FUNC
action_func
;
};
GType
gail_cell_get_type
(
void
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment