Also check registered directories for notification. Fixes theme e.g.
2007-04-10 Alexander Larsson <alexl@redhat.com> * utils.c (config_notify): Also check registered directories for notification. Fixes theme e.g. switching. svn path=/trunk/; revision=7456
This commit is contained in:
parent
25464aad37
commit
d8426a9677
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-04-10 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* utils.c (config_notify):
|
||||
Also check registered directories for notification.
|
||||
Fixes theme e.g. switching.
|
||||
|
||||
2007-04-02 Rodrigo Moya <rodrigo@gnome-db.org>
|
||||
|
||||
* gnome-settings-daemon.c (gnome_settings_daemon_new): return NULL
|
||||
|
|
|
@ -130,6 +130,7 @@ config_notify (GConfClient *client,
|
|||
gpointer user_data)
|
||||
{
|
||||
GSList *callbacks;
|
||||
char *dir, *last_slash;
|
||||
|
||||
callbacks = g_hash_table_lookup (directories, entry->key);
|
||||
if (callbacks) {
|
||||
|
@ -137,6 +138,21 @@ config_notify (GConfClient *client,
|
|||
for (sl = callbacks; sl; sl = sl->next)
|
||||
((GnomeSettingsConfigCallback) sl->data) (entry);
|
||||
}
|
||||
|
||||
/* Also check if the directory, not the specific key was registered */
|
||||
|
||||
dir = g_strdup (entry->key);
|
||||
last_slash = strrchr (dir, '/');
|
||||
if (last_slash)
|
||||
*last_slash = 0;
|
||||
|
||||
callbacks = g_hash_table_lookup (directories, dir);
|
||||
g_free (dir);
|
||||
if (callbacks) {
|
||||
GSList *sl;
|
||||
for (sl = callbacks; sl; sl = sl->next)
|
||||
((GnomeSettingsConfigCallback) sl->data) (entry);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue