Re: Determining width of a clist entry



>Hi!
>
>I'm trying to set the width of the columns in a CList using:
>
>  gtk_clist_set_column_width(GTK_CLIST(clist), column, width);
>
>I think I need to do this using:
>
>  gdk_string_measure(GdkFont *font, const gchar *string);
>
>The column entries are in a glib linked list, so what I want
>to do is keep an array of maximum widths which I update as I
>insert into the CList.
>
>My problem is, how do I determine the GdkFont that my CList
>is using?
>
>Chris

May be

GTK_WIDGET(clist)->style->font

will do?

Vladimir V. Tsichevski
senior expert

-----------------------------------------------------
                  Jet Infosystems
Krasnoproletarskaya 6,		Tel. (+7 095) 972-1182
Moscow 103006, Russia		Fax  (+7 095) 972-0791
-----------------------------------------------------
Any opinions or recommendations herein are those of
the author and not of his computer.





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