#include <gtk/gtk.h>

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

	gtk_init (&argc, &argv);

	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

	statusbar = gtk_statusbar_new ();
	gtk_statusbar_push (GTK_STATUSBAR (statusbar),
			    gtk_statusbar_get_context_id (GTK_STATUSBAR (statusbar), "foo"),
			    "\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220\327\220.");
	gtk_widget_show (statusbar);
	gtk_container_add (GTK_CONTAINER (window), statusbar);

	button = gtk_button_new_from_stock (GTK_STOCK_OPEN);
	gtk_widget_show (button);
	gtk_box_pack_start (GTK_BOX (statusbar), button, FALSE, TRUE, 0);

	/* reordering breaks label size allocation. I get stuff like
	 * (test:4204): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -17 and height 26
	 * */
	gtk_box_reorder_child (GTK_BOX (statusbar), button, 0);

	gtk_window_present (GTK_WINDOW (window));

	gtk_main ();
}
