int
main (int argc, char **argv)
{
    GtkWidget *window;

    free (malloc (8));

    textdomain (GETTEXT_PACKAGE);

    if (!matecomponent_ui_init ("mate-test-focus", VERSION, &argc, argv))
        g_error ("Can not matecomponent_ui_init");

    matecomponent_activate ();

    test_gtk_weakrefs ();

    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_window_set_title (GTK_WINDOW (window), "Control test");

    gtk_widget_show_all (window);

    simple_tests ();

    run_tests (GTK_CONTAINER (window), TRUE, TRUE);
    run_tests (GTK_CONTAINER (window), FALSE, TRUE);

    gtk_widget_destroy (window);

    return matecomponent_ui_debug_shutdown ();
}
static void
xfapplet_construct (XfcePanelPlugin *plugin)
{
	int		 argc = 1;
	char		*argv[] = { "xfce4-xfapplet-plugin", };
	XfAppletPlugin	*xap;

	xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");

	matecomponent_ui_init (argv[0], VERSION, &argc, argv);

	xfapplet_cleanup_unused_mateconf_keys ();

	xap = xfapplet_new (plugin);

	xfapplet_setup_empty (xap);
	
	if (xfapplet_read_configuration (xap))
		xfapplet_setup_full (xap);

	g_signal_connect (plugin, "free-data", G_CALLBACK (xfapplet_free), xap);
	g_signal_connect (plugin, "size-changed", G_CALLBACK (xfapplet_size_changed), xap);
	g_signal_connect (plugin, "screen-position-changed", G_CALLBACK (xfapplet_screen_position_changed), xap);
	g_signal_connect (plugin, "configure-plugin", G_CALLBACK (xfapplet_chooser_dialog), xap);
	g_signal_connect (plugin, "about", G_CALLBACK (xfapplet_about_dialog), xap);
}
int 
main (int argc, char** argv)
{
        if (!matecomponent_ui_init (argv[0], VERSION, &argc, argv))
                g_error ("Could not initialize libmatecomponentui!\n");

	gtk_idle_add ((GtkFunction) create_app, NULL);

	matecomponent_main ();

	return 0;
}