Re: How to change toolbar icon size?



Andrew E. Makeev wrote:

Hi,

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

thanks in advance,
-andrew

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


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);
  iconToolbar=iconsize;

Diana Esch-Mosher





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