[ghex] HexBuffer: enable g_module_make_resident ()
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] HexBuffer: enable g_module_make_resident ()
- Date: Tue, 5 Apr 2022 18:13:59 +0000 (UTC)
commit ba7baae87934003084a32cbcfa9c436be573f2a5
Author: Logan Rathbone <poprocks gmail com>
Date: Tue Apr 5 13:43:23 2022 -0400
HexBuffer: enable g_module_make_resident ()
This is not strictly necessary but doesn't do harm either (it just
enables a flag in the data structure preventing it from responding to a
_close method call) and makes the code self-documenting.
src/hex-buffer-iface.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/hex-buffer-iface.c b/src/hex-buffer-iface.c
index fc10e34..89ad960 100644
--- a/src/hex-buffer-iface.c
+++ b/src/hex-buffer-iface.c
@@ -394,6 +394,7 @@ HexBuffer * hex_buffer_util_new (const char *plugin, GFile *file)
else
{
g_debug ("Loaded plugin: %s", plugin_path);
+ g_module_make_resident (module);
}
/* out: */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]