Re: GTKEntry in GtkTable




Bernd Demian <bdemian@csc-dd.de> writes:

> Hi,
> can anybody help me to place a gtk_entry_widget in a gtk_table, so that
> it justify on the left side of the column. I must say I,  set the
> widget_usize to the length of max_length  depend from the font.
> But I find no way to put the entry_widget to the left - the
> entry_widgets are centralized in the column.

Put the entry widget inside a GtkAlignment, created with 

  alignment = gtk_alignment_new (0.0, 0.5, 0.0, 0.0)

Put that inside the table cell, and make sure that the
for attach options you have GTK_FILL set.

Regards,
                                        Owen



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