X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkmodules.h;h=4aca3606ea94e1294d4f89badbe3c1b9b369b9cb;hb=3a86af43fa208786b5c848c09f9c8e1d3f060931;hp=c7ebd395a700cd72672d7fe5abbbd5034e9605f2;hpb=8189921f446a585398d8df69d589b6003ccbffdb;p=~andy%2Fgtk diff --git a/gtk/gtkmodules.h b/gtk/gtkmodules.h index c7ebd395a..4aca3606e 100644 --- a/gtk/gtkmodules.h +++ b/gtk/gtkmodules.h @@ -13,38 +13,46 @@ * 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. + * License along with this library. If not, see . */ #ifndef __GTK_MODULES_H__ #define __GTK_MODULES_H__ -#include +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ +#include -/* Functions for use within GTK+ +G_BEGIN_DECLS + +/** + * GtkModuleInitFunc: + * @argc: (allow-none): GTK+ always passes %NULL for this argument + * @argv: (allow-none) (array length=argc): GTK+ always passes %NULL for this argument + * + * Each GTK+ module must have a function gtk_module_init() + * with this prototype. This function is called after loading + * the module. */ -gchar * _gtk_find_module (const gchar *name, - const gchar *type); -gchar **_gtk_get_module_path (const gchar *type); - -void _gtk_modules_init (gint *argc, - gchar ***argv, - const gchar *gtk_modules_args); -void _gtk_modules_settings_changed (GtkSettings *settings, - const gchar *modules); - -typedef void (*GtkModuleInitFunc) (gint *argc, - gchar ***argv); -typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ +typedef void (*GtkModuleInitFunc) (gint *argc, + gchar ***argv); + +/** + * GtkModuleDisplayInitFunc: + * @display: an open #GdkDisplay + * + * A multihead-aware GTK+ module may have a gtk_module_display_init() + * function with this prototype. GTK+ calls this function for each + * opened display. + * + * Since: 2.2 + */ +typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display); + + +G_END_DECLS + #endif /* __GTK_MODULES_H__ */