Re: gtk_table_set_row_spacing
- From: Ignacio Nodal <inodal teleline es>
- Cc: GTK-List <gtk-list gnome org>
- Subject: Re: gtk_table_set_row_spacing
- Date: Mon, 02 Apr 2001 15:59:11 +0200
>
> Not quite. As far as I understand it, you've got:
>
> ROW1-SPACING
> COL1-ITEM1-VERTICAL-PADDING
> BUTTON1
> COL1-ITEM1-VERTICAL-PADDING
> ROW1-SPACING
>
> ROW1-SPACING
> COL1-ITEM2-VERTICAL-PADDING
> SEPARATOR
> COL1-ITEM2-VERTICAL-PADDING
> ROW1-SPACING
>
> ROW1-SPACING
> COL1-ITEM3-VERTICAL-PADDING
> BUTTON2
> COL1-ITEM3-VERTICAL-PADDING
> ROW1-SPACING
>
> This might make you reconsider the function of the separator widget.
>
> --p
Maybe my english is worse than I've thought... ;)
First of all, isn't it...:
ROW1-SPACING
COL1-ITEM1-VERTICAL-PADDING
BUTTON1
COL1-ITEM1-VERTICAL-PADDING
ROW1-SPACING
ROW2-SPACING
COL1-ITEM2-VERTICAL-PADDING
SEPARATOR
COL1-ITEM2-VERTICAL-PADDING
ROW2-SPACING
ROW3-SPACING
COL1-ITEM3-VERTICAL-PADDING
BUTTON2
COL1-ITEM3-VERTICAL-PADDING
ROW3-SPACING
I mean ROWx-SPACING should change in each row, or not?
Next, I'm not using the separator widget to "separate" rows.
To separate rows I use "gtk_table_set_row_spacing ()"
The question is if I change the ROW2-SPACING using this function, it
should affect the space between BUTTON1 and SEPARATOR and also the space
between SEPARATOR and BUTTON2, or not?
So... why have I to call gtk_table_set_row_spacing two times if only one
should be enougth?
(...)
table = gtk_table_new (3, 1, FALSE);
button = gtk_button_new_with_label ("button 1");
gtk_table_attach_defaults (GTK_TABLE(table), button, 0, 1, 0, 1);
gtk_widget_show (button);
separator = gtk_hseparator_new();
gtk_table_attach_defaults (GTK_TABLE(table), separator, 0, 1, 1, 2);
gtk_widget_show (separator);
button = gtk_button_new_with_label ("button 2");
gtk_table_attach_defaults (GTK_TABLE(table), button, 0, 1, 2, 3);
gtk_widget_show (button);
gtk_table_set_row_spacing (GTK_TABLE(table), 0, 15);
gtk_table_set_row_spacing (GTK_TABLE(table), 1, 15);
(...)
Thanks,
Ignacio Nodal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]