prefs: Allow no-op listener removal
Allow removing a prefs handler that was already removed. This allows us to remove prefs from the dispose function without having to keep track of it in every place.
This commit is contained in:
parent
8e7e1eeef5
commit
14d8aec4b8
@ -860,8 +860,6 @@ meta_prefs_remove_listener (MetaPrefsChangedFunc func,
|
|||||||
|
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_bug ("Did not find listener to remove\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user