Re: How to change toolbar icon size?

Andrew E. Makeev wrote:


What is alternative for deprecated Gtk::Toolbar->set_icon_size() method if I would to change toolbar icons at runtime?

thanks in advance,

gtkmm-list mailing list
gtkmm-list gnome org

I would love to know if there is a "correct way". Here is a completely back door method!

Glib::RefPtr<Gtk::Settings> settings = Gtk::Settings::get_default();
Glib::PropertyProxy<IconSize> iconToolbar = settings->property_gtk_toolbar_icon_size();
 Gtk::IconSize iconsize(ICON_SIZE_SMALL_TOOLBAR);

Diana Esch-Mosher

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