diff options
| author | Mikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com> | 2010-08-20 11:20:14 +0200 |
|---|---|---|
| committer | Mikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com> | 2010-08-20 11:20:14 +0200 |
| commit | 318c2d7ab2ca85abd682ec5af272aab485634d4e (patch) | |
| tree | 545a20f0a3bba9db01eee3074b0a890a4c034d2c | |
| parent | 8cbd28b98a6486a356437796c699c2b0f061f638 (diff) | |
Place daemons should not emit PlaceEntryInfo when local properties change. This visibly removes flicker from the place rendering
(bzr r449)
| -rw-r--r-- | unity/unity-place.vala | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/unity/unity-place.vala b/unity/unity-place.vala index 5d0317dd9..f2bb93096 100644 --- a/unity/unity-place.vala +++ b/unity/unity-place.vala @@ -842,6 +842,7 @@ namespace Unity.Place { private string _dbus_path; private bool _exported = false; private HashTable<string, _EntrySignals?> entry_signals; + private Gee.Set<string> ignore_remote_notify_props; /* * Properties @@ -873,6 +874,12 @@ namespace Unity.Place { construct { service = new ServiceImpl (_dbus_path); entry_signals = new HashTable<string, _EntrySignals?>(str_hash, str_equal); + + ignore_remote_notify_props = new Gee.HashSet<string> (); + ignore_remote_notify_props.add ("active-search"); + ignore_remote_notify_props.add ("active-global-search"); + ignore_remote_notify_props.add ("active"); + ignore_remote_notify_props.add ("active-section"); } public Controller (string dbus_path) @@ -1016,10 +1023,8 @@ namespace Unity.Place { return; } - /* Don't emit signals on the bus when the search changes. - * The search is purely a local property */ - if ("active-search" == pspec.get_name () || - "active-global-search" == pspec.get_name ()) + /* Don't emit signals on the bus that are strictly local metadata */ + if (pspec.get_name () in ignore_remote_notify_props) return; entry_service.queue_place_entry_info_changed_signal (); |
