Can't set font in Gtk::CellRendererText.
- From: Germán Diago <germandiago gmail com>
- To: gtkmm-list gnome org
- Subject: Can't set font in Gtk::CellRendererText.
- Date: Fri, 25 Jun 2010 18:16:02 +0200
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 =
dynamic_cast<Gtk::CellRendererText
*>(resultados_sesion_->get_column_cell_renderer(0));
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]