You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.9 KiB

  1. /* GTK - The GIMP Toolkit
  2. * Copyright (C) 2000 Red Hat Software
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. #ifndef __GTK_IM_MODULE_H__
  20. #define __GTK_IM_MODULE_H__
  21. #include <gtk/gtk.h>
  22. G_BEGIN_DECLS
  23. typedef struct _GtkIMContextInfo GtkIMContextInfo;
  24. struct _GtkIMContextInfo
  25. {
  26. const gchar *context_id;
  27. const gchar *context_name;
  28. const gchar *domain;
  29. const gchar *domain_dirname;
  30. const gchar *default_locales;
  31. };
  32. /* Functions for use within GTK+
  33. */
  34. void _gtk_im_module_list (const GtkIMContextInfo ***contexts,
  35. guint *n_contexts);
  36. GtkIMContext * _gtk_im_module_create (const gchar *context_id);
  37. const gchar * _gtk_im_module_get_default_context_id (GdkWindow *client_window);
  38. /* The following entry points are exported by each input method module
  39. */
  40. /*
  41. void im_module_list (const GtkIMContextInfo ***contexts,
  42. guint *n_contexts);
  43. void im_module_init (GtkModule *module);
  44. void im_module_exit (void);
  45. GtkIMContext *im_module_create (const gchar *context_id);
  46. */
  47. G_END_DECLS
  48. #endif /* __GTK_IM_MODULE_H__ */