diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-03-09 02:13:13 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-03-09 02:13:13 -0500 |
commit | e0771a54a2102c80750beba2e643310118e98963 (patch) | |
tree | 458c279a4c24079d0fa7e50bd14f40f77c885542 /gtk/gtkimcontextsimple.c | |
parent | 01fda3b85ee383637fb9d4befb1bfb7e5cae93b1 (diff) | |
download | gtk+-e0771a54a2102c80750beba2e643310118e98963.tar.gz |
Avoid warnings
When generating introspection data, we instantiate types without
calling gtk_init, so make sure that extension points are registered
before the type is trying to implement them.
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index 38ec5f24c2..fe11e7c332 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -40,7 +40,7 @@ #include "gtkdebug.h" #include "gtkintl.h" #include "gtkcomposetable.h" -#include "gtkimmodule.h" +#include "gtkimmoduleprivate.h" #include "gtkimcontextsimpleprivate.h" #include "gtkimcontextsimpleseqs.h" @@ -167,6 +167,7 @@ static void gtk_im_context_simple_set_client_widget (GtkIMContext G_DEFINE_TYPE_WITH_CODE (GtkIMContextSimple, gtk_im_context_simple, GTK_TYPE_IM_CONTEXT, G_ADD_PRIVATE (GtkIMContextSimple) + gtk_im_module_ensure_extension_point (); g_io_extension_point_implement (GTK_IM_MODULE_EXTENSION_POINT_NAME, g_define_type_id, "gtk-im-context-simple", |