#include <gtk/gtk.h>

int
main (int argc, char *argv[])
{
	GtkWidget *window, *grid, *label1, *label2, *button;
	GtkSizeGroup *size_group;

	gtk_init (NULL, NULL);

	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	grid = gtk_grid_new ();
	gtk_container_add (GTK_CONTAINER (window), grid);
	gtk_widget_show (grid);

	label1 = gtk_label_new ("Foo bar baz");
	gtk_widget_show (label1);
	gtk_grid_attach (GTK_GRID (grid), label1,
			 0, 0, 1, 1);

	label2 = gtk_label_new ("Foo bar baz");
	gtk_label_set_angle (GTK_LABEL (label2), 90);
	gtk_grid_attach (GTK_GRID (grid), label2,
			 1, 0, 1, 1);

	size_group = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
	gtk_size_group_add_widget (size_group, label1);
	gtk_size_group_add_widget (size_group, label2);
	gtk_size_group_set_ignore_hidden (size_group, FALSE);

	button = gtk_toggle_button_new_with_label ("Show");
	gtk_widget_show (button);
	gtk_grid_attach (GTK_GRID (grid), button,
			 0, 1, 2, 1);
	g_object_bind_property (button, "active",
				label2, "visible", 0);

	gtk_widget_show (window);

	gtk_main ();

	return 0;
}
