Homogeneous Table
- From: Mike Reed <mikereed ntlworld com>
- To: gtk-list gnome org
- Subject: Homogeneous Table
- Date: Tue, 14 Jan 2003 15:31:36 +0000
Hi,
I'm using Gtk+ 2.2.0.
I'm having a problem creating a homogeneous table with the number of
rows different from the number of columns. The following code snippet
creates a table whose size is 3x3 (not 1x3!) with the labels occupying
the left hand column. If I make the table non homogeneous it's size is
1x3 as I would expect.
GtkTable* t = (GtkTable*)gtk_table_new(1, 3, TRUE);
gtk_table_attach_defaults(t, gtk_label_new("A"), 0, 1, 0, 1);
gtk_table_attach_defaults(t, gtk_label_new("B"), 0, 1, 1, 2);
gtk_table_attach_defaults(t, gtk_label_new("C"), 0, 1, 2, 3);
How do I create a 1x3 homogeneous table?
Mike.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]