* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <gmodule.h>
#include "gtkthemes.h"
#include "gtkrc.h"
-#include "config.h"
#include "gtkintl.h"
+#include "gtkalias.h"
typedef struct _GtkThemeEngineClass GtkThemeEngineClass;
GTK_NOTE (MISC, g_message ("Loading Theme %s\n", engine_path));
- engine->library = g_module_open (engine_path, 0);
+ engine->library = g_module_open (engine_path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
g_free(engine_path);
if (!engine->library)
{
- g_warning (g_module_error());
+ g_warning ("%s", g_module_error());
return FALSE;
}
!g_module_symbol (engine->library, "theme_create_rc_style",
(gpointer *)&engine->create_rc_style))
{
- g_warning (g_module_error());
+ g_warning ("%s", g_module_error());
g_module_close (engine->library);
return FALSE;
if (!theme_engine_type)
{
- static const GTypeInfo theme_engine_info = {
+ const GTypeInfo theme_engine_info = {
sizeof (GtkThemeEngineClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* instance_init */
};
- theme_engine_type = g_type_register_static (G_TYPE_TYPE_MODULE, "GtkThemeEngine", &theme_engine_info, 0);
+ theme_engine_type =
+ g_type_register_static (G_TYPE_TYPE_MODULE, I_("GtkThemeEngine"),
+ &theme_engine_info, 0);
}
return theme_engine_type;
if (!result)
{
- result = GTK_THEME_ENGINE (g_object_new (GTK_TYPE_THEME_ENGINE, NULL));
+ result = g_object_new (GTK_TYPE_THEME_ENGINE, NULL);
g_type_module_set_name (G_TYPE_MODULE (result), name);
result->name = g_strdup (name);
return engine->create_rc_style ();
}
+
+#define __GTK_THEMES_C__
+#include "gtkaliasdef.c"