summaryrefslogtreecommitdiff
path: root/libdocument/ev-mapping-list.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-17 05:15:56 +0200
committerinfirit <[email protected]>2014-09-23 13:31:02 +0200
commit94dcb761b95ee54ef1f1512d59721932d75ffb7f (patch)
tree60f89e8174ffc3133c0f1758e2f43408b510c02b /libdocument/ev-mapping-list.c
parent53bb92a83092a70170f85d75491c5b0b881455bc (diff)
downloadatril-94dcb761b95ee54ef1f1512d59721932d75ffb7f.tar.bz2
atril-94dcb761b95ee54ef1f1512d59721932d75ffb7f.tar.xz
Fix glib deprecations
Based on evince commit by Carlos Garcia Campos <[email protected]> Url: https://git.gnome.org/browse/evince/commit/?id=bf90f90e0af99bbfdd20e6d21fd228c05cffae51 Url: https://git.gnome.org/browse/evince/commit/?id=76151be92239ed5f491cb26c87a2328b670e9f64
Diffstat (limited to 'libdocument/ev-mapping-list.c')
-rw-r--r--libdocument/ev-mapping-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdocument/ev-mapping-list.c b/libdocument/ev-mapping-list.c
index 6c670158..44628b09 100644
--- a/libdocument/ev-mapping-list.c
+++ b/libdocument/ev-mapping-list.c
@@ -136,7 +136,7 @@ ev_mapping_list_unref (EvMappingList *mapping_list)
g_return_if_fail (mapping_list != NULL);
g_return_if_fail (mapping_list->ref_count > 0);
- if (g_atomic_int_exchange_and_add (&mapping_list->ref_count, -1) - 1 == 0) {
+ if (g_atomic_int_add (&mapping_list->ref_count, -1) - 1 == 0) {
g_list_foreach (mapping_list->list,
(GFunc)mapping_list_free_foreach,
mapping_list->data_destroy_func);