Re: [gtk-list] Re: Text Entry Size



On Fri, 15 Jan 1999, Sergei O. Naoumov wrote:

> 
> Alexander Kotelnikov <sacha@AK2614.spb.edu> writes:
> 
> > > I am writing a simple GTK program after going through the tutorial. My
> > > problem is this: how do I set the width of a text-entry box? I want the
> > > height to remain the same, but I would like the width to be smaller.
> >
> > You can custom size of any(?) widget with
> >     gtk_widget_set_usize(GTK_WIDGET(Your_Widget),X,Y);
> >
> 
> This is actually not what he asked. This way you need to tell it both
> width and height. Quite honestly, I am plagued with this question for
> a long while. Does anyone know how to solve this?

I don't know if it's the right way, but giving a height of 0 works for 
me. Gimp also uses it so I guess it's okay.

--
Osku Salerma - osku@iki.fi - http://www.iki.fi/osku/
Nostalgia isn't what it used to be.



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