Re: proper way to get cairo font width

2006-09-19 Thread Tommi Sakari Uimonen
> Hi Tommi, Hi Stefan :) >> Hello. What is the best way to query font width from cairo, in case that I >> want to set size_hint for the widget that is drawing with that font? >> > would it help to construcz PangoLayouts and use pango_layout_get_extents(). I think I started some experiments alrea

Re: proper way to get cairo font width

2006-09-19 Thread Stefan Kost
Hi Tommi, Tommi Sakari Uimonen wrote: > Hello. What is the best way to query font width from cairo, in case that I > want to set size_hint for the widget that is drawing with that font? > > Currently I'm creating a cairo for some existing widget and set there the > desired font and query the wid

Re: number of entries in GtkCombobox

2006-09-19 Thread Lance Dillon
Okay, that's better. I didn't see the special case. - Original Message From: [EMAIL PROTECTED] To: Lance Dillon <[EMAIL PROTECTED]> Cc: gtk-app-devel-list@gnome.org Sent: Tuesday, September 19, 2006 11:45:06 AM Subject: Re: number of entries in GtkCombobox -BEGIN PGP SIGNED MESSAGE

Re: number of entries in GtkCombobox

2006-09-19 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Sep 19, 2006 at 08:34:56AM -0700, Lance Dillon wrote: > I'm not sure I like this answer, it seems to be way to much for this question, > but it looks like the best way to do it is to get a GtkTreeIter with > gtk_tree_model_get_iter_first(), the

Re: number of entries in GtkCombobox

2006-09-19 Thread Lance Dillon
I'm not sure I like this answer, it seems to be way to much for this question, but it looks like the best way to do it is to get a GtkTreeIter with gtk_tree_model_get_iter_first(), then walk the list with gtk_tree_model_iter_next(), counting up the number of rows: GtkTreeIter iter; int num,v; G

Adding fonts

2006-09-19 Thread Dheeraj V.S.
Hello all, I'm using GTK+-2.6.10 with DirectFB 0.9.25. I've also installed freetype-2.1.10 and fontconfig. I need to add some TrueType fonts, so that my applications could use them. Where should I put the font files? The "fonts.conf" file contains the following directory list: /usr/shar

number of entries in GtkCombobox

2006-09-19 Thread tomek . fizyk
Hi. How do I get the number of entries in GtkComboBox (created with gtk_combo_box_new_text() )? Tomek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

subscribe

2006-09-19 Thread tomek . fizyk
___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Dynamic theme changing

2006-09-19 Thread Madhusudan E
Hi all, *) I want to know how to give a GTK theme file (RC file) as input to GTK+2.10 libraries and also which directory to put in *) Also I want to change the theme dynamically This may be a small clarification. But I don't know how to do this. Please let me know how I can do this. Thanx Madhus

Adding fonts

2006-09-19 Thread Dheeraj V.S.
Hello all, I'm using GTK+-2.6.10 with DirectFB 0.9.25. I've also installed freetype-2.1.10 and fontconfig. I need to add some TrueType fonts, so that my applications could use them. Where should I put the font files? The "fonts.conf" file contains the following directory list: /usr/share