immodule: Move private functions to a private header

This commit is contained in:
Benjamin Otte 2011-11-08 20:03:09 +01:00
parent bd97127e6c
commit c2da143aa6
5 changed files with 38 additions and 7 deletions

View File

@ -414,6 +414,7 @@ gtk_private_h_sources = \
gtkfontchooserutils.h \
gtkiconcache.h \
gtkimageprivate.h \
gtkimmoduleprivate.h \
gtkimcontextsimpleseqs.h \
gtkintl.h \
gtkkeyhash.h \

View File

@ -33,6 +33,7 @@
#include <glib/gstdio.h>
#include <gmodule.h>
#include "gtkimmodule.h"
#include "gtkimmoduleprivate.h"
#include "gtkimcontextsimple.h"
#include "gtksettings.h"
#include "gtkprivate.h"

View File

@ -35,13 +35,6 @@ struct _GtkIMContextInfo
const gchar *default_locales;
};
/* Functions for use within GTK+
*/
void _gtk_im_module_list (const GtkIMContextInfo ***contexts,
guint *n_contexts);
GtkIMContext * _gtk_im_module_create (const gchar *context_id);
const gchar * _gtk_im_module_get_default_context_id (GdkWindow *client_window);
/* The following entry points are exported by each input method module
*/

35
gtk/gtkimmoduleprivate.h Normal file
View File

@ -0,0 +1,35 @@
/* GTK - The GIMP Toolkit
* Copyright (C) 2000 Red Hat Software
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GTK_IM_MODULE_PRIVATE_H__
#define __GTK_IM_MODULE_PRIVATE_H__
#include <gdk/gdk.h>
#include <gtk/gtkimmodule.h>
G_BEGIN_DECLS
void _gtk_im_module_list (const GtkIMContextInfo ***contexts,
guint *n_contexts);
GtkIMContext * _gtk_im_module_create (const gchar *context_id);
const gchar * _gtk_im_module_get_default_context_id (GdkWindow *client_window);
G_END_DECLS
#endif /* __GTK_IM_MODULE_PRIVATE_H__ */

View File

@ -24,6 +24,7 @@
#include "gtkimmulticontext.h"
#include "gtkimmodule.h"
#include "gtkimmoduleprivate.h"
#include "gtklabel.h"
#include "gtkmain.h"
#include "gtkradiomenuitem.h"