Re: Entry Width



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]