int
main (int    argc,
      char **argv)
{

#ifdef ENABLE_NLS
	bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
# ifdef HAVE_BIND_TEXTDOMAIN_CODESET
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
# endif
	textdomain (GETTEXT_PACKAGE);
#endif

	gtk_init (&argc, &argv);

	job = gs_job_new ();
	theme_manager = gs_theme_manager_new ();

	init_capplet ();

	gtk_main ();

	g_object_unref (theme_manager);
	g_object_unref (job);

	return 0;
}
Beispiel #2
0
static void
gs_manager_init (GSManager *manager)
{
	manager->priv = GS_MANAGER_GET_PRIVATE (manager);

	manager->priv->fade = gs_fade_new ();
	manager->priv->grab = gs_grab_new ();
	manager->priv->theme_manager = gs_theme_manager_new ();

	manager->priv->bg = mate_bg_new ();

	g_signal_connect (manager->priv->bg,
					  "changed",
					  G_CALLBACK (on_bg_changed),
					  manager);

	mate_bg_load_from_system_preferences (manager->priv->bg);
}