diff options
author | Padraig O'Briain <padraigo@src.gnome.org> | 2002-03-19 14:16:00 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2002-03-19 14:16:00 +0000 |
commit | 797e32496f26c14b5da0e76ed525c874f29e8172 (patch) | |
tree | e423951a737f4b9bb2c0a98f2bc26df9e27a32e1 /atk/atkutil.c | |
parent | 1d0e89d739a1cb440a19d91ece3610e61c0e8bbe (diff) | |
download | atk-797e32496f26c14b5da0e76ed525c874f29e8172.tar.gz |
Do not do notification if previously notified object is the same as this
* atk/atkutil.c (atk_focus_tracker_notify):
Do not do notification if previously notified object is the same as
this object
Diffstat (limited to 'atk/atkutil.c')
-rwxr-xr-x | atk/atkutil.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/atk/atkutil.c b/atk/atkutil.c index 65a762a..459a820 100755 --- a/atk/atkutil.c +++ b/atk/atkutil.c @@ -174,11 +174,21 @@ void atk_focus_tracker_notify (AtkObject *object) { FocusTracker *item; + static AtkObject *previous_focus_object = NULL; guint i; if (trackers == NULL) return; + if (object == previous_focus_object) + return; + else + { + if (previous_focus_object) + g_object_unref (previous_focus_object); + previous_focus_object = g_object_ref (object); + } + for (i = 0; i < trackers->len; i++) { item = &g_array_index (trackers, FocusTracker, i); |