Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dlang
gtkd
Commits
05c5b687
Commit
05c5b687
authored
Aug 03, 2019
by
Mike Wey
Browse files
Don't call the gsignal functions after the library has been unloaded.
parent
49192d1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
generated/gtkd/gtk/Container.d
View file @
05c5b687
...
...
@@ -277,8 +277,15 @@ public class Container : Widget
{
children
=
null
;
//Is this needed?
import
std
.
traits
:
isPointer
;
import
gtkd
.
Loader
;
import
gobject
.
c
.
functions
;
import
glib
.
c
.
functions
;
static
if
(
isPointer
!(
typeof
(
g_signal_handlers_disconnect_matched
))
)
if
(
!
Linker
.
isLoaded
(
LIBRARY_GOBJECT
)
)
return
;
g_signal_handlers_disconnect_matched
(
gtkContainer
,
GSignalMatchType
.
FUNC
,
0
,
g_quark_from_string
(
"add"
),
null
,
&
gtkd_container_add
,
null
);
g_signal_handlers_disconnect_matched
(
gtkContainer
,
GSignalMatchType
.
FUNC
,
0
,
g_quark_from_string
(
"remove"
),
null
,
&
gtkd_container_remove
,
null
);
}
...
...
src/APILookupGtk.txt
View file @
05c5b687
...
...
@@ -1054,8 +1054,15 @@ code: start
{
children = null; //Is this needed?
import std.traits : isPointer;
import gtkd.Loader;
import gobject.c.functions;
import glib.c.functions;
static if ( isPointer!(typeof(g_signal_handlers_disconnect_matched)) )
if ( !Linker.isLoaded(LIBRARY_GOBJECT) )
return;
g_signal_handlers_disconnect_matched(gtkContainer, GSignalMatchType.FUNC, 0, g_quark_from_string("add"), null, >kd_container_add, null);
g_signal_handlers_disconnect_matched(gtkContainer, GSignalMatchType.FUNC, 0, g_quark_from_string("remove"), null, >kd_container_remove, null);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment