#include <gtk/gtk.h>

int
main (int argc, char * argv[])
{
	GtkListStore *model;
	GtkTreeIter a, b;

	gtk_init (&argc, &argv);

	model = gtk_list_store_new (1, G_TYPE_STRING);

	gtk_list_store_append (model, &a);
	gtk_list_store_set (model, &a,
			    0, "bla",
			    -1);

	gtk_list_store_append (model, &a);
	gtk_list_store_set (model, &a,
			    0, "blub",
			    -1);

	gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (model), &a, "0");
	gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (model), &b, "1");

	gtk_list_store_swap (model, &a, &b);

	gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (model), &a, "1");

	g_object_unref (model);

	return 0;
}
