gtk_table_set_row_spacing



From the API Documentation:
" void gtk_table_set_row_spacing (GtkTable *table, guint row,guint
spacing);
 changes the space between a given table row and its surrounding rows.
 table   : a GtkTable containing the row whose properties you wish to
change.
 row     : row number whose spacing will be changed.
 spacing : number of pixels that the spacing should take up."

I've got in vertical order

BUTTON1
SEPERATOR
BUTTON2

(...)

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);
(...)

The API documentation says it "changes the space between a given table
row and its SURROUNDING rows."
Why have I to call this function for rows 0 and 1 in order to change the
space of the "separator" with both buttons?? Should not be enougth to
call it for row 1 (according to the Reference Manual)??

Thanks,
	Ignacio Nodal




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]