[ghex] HexBuffer: enable g_module_make_resident ()



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]