Re: Combobox in a hbox...
- From: Evan Martin <martine cs washington edu>
- To: Ian Molton <spyro armlinux org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Combobox in a hbox...
- Date: Wed, 12 Jun 2002 15:58:20 -0700
On Mon, Jun 10, 2002 at 02:23:13AM +0100, Ian Molton wrote:
gtk_widget_set_usize(combo, 20, -1);
1) Can the width be set in characters (I guess not?)
2) where are the gtk_widget_* calls documented?
You can calculate the width of a string in GTK1.2 with
gdk_string_width().
gtk_clist_set_column_width(list, FRIEND_COL_USERNAME,
gdk_string_width(GTK_WIDGET(list)->style->font,
"aaaaaaaaaaaaa"));
The gtk_widget_* calls are documented in the documentation under
"GtkWidget", of course. :)
(You should almost never use gtk_widget_set_usize(), btw, because you
don't want to force your sizes on your user; GTK is pretty good about
this normally, and setting the usize undermines that.)
--
Evan Martin
martine cs washington edu
http://neugierig.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]