diff options
author | Tristan Van Berkom <tristanvb@openismus.com> | 2013-03-24 17:16:20 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristanvb@openismus.com> | 2013-04-08 21:19:27 +0900 |
commit | 4ec6d6006e36f3f51074750534a8ab20b51abb5b (patch) | |
tree | a8d778d3a7ec2024000b4b251a81ccb8a355a4fb /gtk/gtkprivate.h | |
parent | c6ab5157358bc364eede018acc14de976add195c (diff) | |
download | gtk+-4ec6d6006e36f3f51074750534a8ab20b51abb5b.tar.gz |
Work around access to global resources without calling gtk_init()
Some utilities such as GIR and gtk-doc, initialize class vtables without
initializing GTK+, with composite templates accessing resources this
causes a hand full of unneeded warnings.
The workaround for now is the use a private function _gtk_ensure_resources()
which is both called while initializing GTK+, and at the beginning of
gtk_widget_class_set_template_from_resource() (the private function
ensures that the resource will only ever be registered GOnce).
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r-- | gtk/gtkprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index 5b05f5bb47..093334f84c 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -59,6 +59,8 @@ gboolean _gtk_fnmatch (const char *pattern, gchar * _gtk_get_lc_ctype (void); +void _gtk_ensure_resources (void); + gboolean _gtk_boolean_handled_accumulator (GSignalInvocationHint *ihint, GValue *return_accu, const GValue *handler_return, |