summaryrefslogtreecommitdiff
path: root/gtk/gtkmodules.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-01-04 17:32:12 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-01-04 17:32:12 -0500
commitb123bc41fdce1e2cbf4ab6f998b3dd372aab515f (patch)
tree1495af7f7c8882fd761336e208526216ac22e254 /gtk/gtkmodules.h
parent98440ad03190396bd2bef02557f8d41e12dd5795 (diff)
downloadgtk+-b123bc41fdce1e2cbf4ab6f998b3dd372aab515f.tar.gz
Move docs for gtkmain inline
At the same time, introduce a gtkmainprivate.h header and various other cleanups. Based on a patch by Tadej Borovšak. https://bugzilla.gnome.org/show_bug.cgi?id=617471
Diffstat (limited to 'gtk/gtkmodules.h')
-rw-r--r--gtk/gtkmodules.h36
1 files changed, 22 insertions, 14 deletions
diff --git a/gtk/gtkmodules.h b/gtk/gtkmodules.h
index ca1c52e431..4674442963 100644
--- a/gtk/gtkmodules.h
+++ b/gtk/gtkmodules.h
@@ -30,22 +30,30 @@
G_BEGIN_DECLS
+/**
+ * GtkModuleInitFunc:
+ * @argc: Pointer to the number of arguments remaining after gtk_init()
+ * @argv: Points to the argument vector
+ *
+ * Each GTK+ module must have a function gtk_module_init()
+ * with this prototype. This function is called after loading
+ * the module with the @argc and @argv cleaned from any arguments
+ * that GTK+ handles itself.
+ */
+typedef void (*GtkModuleInitFunc) (gint *argc,
+ gchar ***argv);
-/* Functions for use within GTK+
+/**
+ * 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
*/
-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);
+typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display);
G_END_DECLS