Can't set font in Gtk::CellRendererText.

Hello. I'm trying to set a font in a Gtk::CellRendererText but I can't
do it in any way. I've
tried even with property_font_desc() but I didn't have any luck either.

Here's the snippet I tried:

Gtk::CellRendererText * rt =
			rt->property_font() = Glib::ustring("DejaVu Sans 20");
I tried with "Times Italic 10" and with many others. But it segfaults.
I'm using ubuntu 10.04 with gtkmm version 2.20.3.

Thanks in advance.

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