[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Entry Width
- From: Carlos Pereira <carlos pehoe civil ist utl pt>
- To: gtk-app-devel-list gnome org
- Subject: Re: Entry Width
- Date: Sat, 28 Oct 2000 17:53:35 +0100
>Quickie Question: how do I change the width of the GtkEntry window to be shorter?
Example:
entry = gtk_entry_new_with_max_length (10);
gtk_widget_set_usize (entry, gdk_string_width (entry->style->font, "12345") +
entry->style->klass->xthickness, 0);
gtk_widget_show (entry);
The entry accepts 10 characters,
but has the width defined by the string "12345".
Carlos
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]