summaryrefslogtreecommitdiff
path: root/gtk/gtkimmodule.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-02-19 18:29:00 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-02-24 21:34:40 -0500
commit29bcc38ae62e73b76f0f663e2ecc5e85bfe4ca46 (patch)
treecff130d8b76d27418228ece1187d98d79133e7c6 /gtk/gtkimmodule.h
parente6bf832514c04a224c799413bdac7489c7fe9186 (diff)
downloadgtk+-29bcc38ae62e73b76f0f663e2ecc5e85bfe4ca46.tar.gz
Convert immodules to use an extension point
Add an extension point called gtk-im-module, which requires the type GtkIMContext. Simplify the loading by using GIO infrastructure. Drop the locale filtering for now, I don't think it is really necessary nowadays. Convert existing platform modules to gio modules. Sill to do: Drop the conditional build machinery. Either always include them, or never.
Diffstat (limited to 'gtk/gtkimmodule.h')
-rw-r--r--gtk/gtkimmodule.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/gtk/gtkimmodule.h b/gtk/gtkimmodule.h
index db5d70f11b..913542aef9 100644
--- a/gtk/gtkimmodule.h
+++ b/gtk/gtkimmodule.h
@@ -20,15 +20,12 @@
#include <gtk/gtk.h>
-/* The following entry points are exported by each input method module
- */
+G_BEGIN_DECLS
+
+void gtk_im_modules_init (void);
+
+#define GTK_IM_MODULE_EXTENSION_POINT_NAME "gtk-im-module"
-/*
-void im_module_list (const GtkIMContextInfo ***contexts,
- guint *n_contexts);
-void im_module_init (GtkModule *module);
-void im_module_exit (void);
-GtkIMContext *im_module_create (const gchar *context_id);
-*/
+G_END_DECLS
#endif /* __GTK_IM_MODULE_H__ */