Commit 7f9a0dbe authored by Matthias Clasen's avatar Matthias Clasen

Add private api to load a single module

In the following commits, this function will be used to load the
gtkparasite module.
parent 87e3484a
......@@ -600,3 +600,10 @@ _gtk_module_has_mixed_deps (GModule *module_to_check)
return result;
}
void
_gtk_modules_load_module (const gchar *name)
{
/* We leak the ref */
g_slist_free (load_modules (name));
}
......@@ -49,7 +49,6 @@ typedef void (*GtkModuleInitFunc) (gint *argc,
*/
typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display);
G_END_DECLS
......
......@@ -38,6 +38,7 @@ void _gtk_modules_init (gint *argc,
const gchar *gtk_modules_args);
void _gtk_modules_settings_changed (GtkSettings *settings,
const gchar *modules);
void _gtk_modules_load_module (const gchar *name);
gboolean _gtk_module_has_mixed_deps (GModule *module);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment