Re: Custom icons and Gtk::IconTheme



Please, help me.
Is this what I have to do??

TestIcons::onThemeChanged(void){
    Glib::RefPtr<Gdk::Pixbuf> p;

    // Load a copy of the new icon
    p = icon_theme->load_icon("stock_calendar", 48, Gtk::ICON_LOOKUP_USE_BUILTIN);
    // Replace image in pixbuf without replace the Gtk::Pixbuf
    p->copy_area(0, 0, p->get_width(), p->get_height(), pixbuf, 0, 0);
}

--
jamf
gelide.sf.net


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