you should check xiaonei_gtk_create_blog() function