Re: How to change toolbar icon size?

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

 



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@xxxxxxxxx
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


_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux