Re: Query regarding the Gtk::Label::modify_font() function

Do you use gtkmm2 or gtkmm3? In gtkmm2 there is the function
Gtk::Widget::modify_font(const Pango::FontDescription& font_desc). In
gtkmm3 it has been replaced by Gtk::Widget::override_font(const
Pango::FontDescription& font_desc).

If you have studied a tutorial for gtkmm2, and then use gtkmm3, you will
certainly see more differences. There is a summary at


ons 2011-06-29 klockan 20:02 +0530 skrev flideravi gmail com:
> hello all, 
> I am new to gtkmm. I was trying out the video tutorials on
> ""; and in one of the videos he used
> Pango::FontDescription object to describe and font and then changed
> the font of a label using Gtk::Label::modify_font() function
> [label.modify_font(font), where, label is an object of Gtk::Label and
> font is an object of Pango::FontDescription], but in my code compiler
> produces error saying that no such function exist in the Gtk::Label
> class, however it runs perfectly fine in the tutorial. 
> What might be the reason for this? Has the above mentioned function
> been deleted form the API?
> fLiDe
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org

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