On Tue, 2010-04-06 at 14:54 -0400, MK wrote: > I tried to do this using the widget::modify_font() method, my attempt > is here: > > http://www.gtkforums.com/viewtopic.php?t=5961&sid=f3549748cd4d9c904e6db5afe1678951 > > but that does not work and no one seems to have any thots. Perhaps > this is only for text and entry widgets? Or what is modify_font for?
It's very difficult to change fonts and colors of widgets. You often need to put the widget inside a Gtk::EventBox and you often need to understand what child widgets are inside the widget. This gives some idea of what I had to do to make it work generically. Maybe it will give you some things to try: http://git.gnome.org/browse/glom/tree/glom/utility_widgets/layoutwidgetbase.cc#n89 (For advanced readers, I complained about part of the problem here: http://mail.gnome.org/archives/gtk-devel-list/2010-January/msg00059.html ) > What I specifically want to do is set some messages to bold in a > StatusBar, but I may also want to (eg) set the text color/style on > certain buttons. > > Which there must be a way to do that. Anyone hints? :) > -- [email protected] www.murrayc.com www.openismus.com _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
