[ghex] HexBuffer: correct prop notification for iface impls
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] HexBuffer: correct prop notification for iface impls
- Date: Thu, 23 Dec 2021 08:04:05 +0000 (UTC)
commit 1982a0f568fb1678e895f3319fd3215f26e32f87
Author: Logan Rathbone <poprocks gmail com>
Date: Thu Dec 23 03:02:37 2021 -0500
HexBuffer: correct prop notification for iface impls
src/hex-buffer-malloc.c | 2 +-
src/hex-buffer-mmap.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/hex-buffer-malloc.c b/src/hex-buffer-malloc.c
index ef35413..e4d1777 100644
--- a/src/hex-buffer-malloc.c
+++ b/src/hex-buffer-malloc.c
@@ -139,7 +139,7 @@ hex_buffer_malloc_set_file (HexBuffer *buf, GFile *file)
self->file = NULL;
return FALSE;
}
-
+ g_object_notify (G_OBJECT(self), "file");
return TRUE;
}
diff --git a/src/hex-buffer-mmap.c b/src/hex-buffer-mmap.c
index 33137d0..830bf30 100644
--- a/src/hex-buffer-mmap.c
+++ b/src/hex-buffer-mmap.c
@@ -542,7 +542,7 @@ hex_buffer_mmap_set_file (HexBuffer *buf, GFile *file)
}
self->file = file;
- g_object_notify_by_pspec (G_OBJECT(self), properties[PROP_FILE]);
+ g_object_notify (G_OBJECT(self), "file");
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]