Re: Custom icons and Gtk::IconTheme
- From: "Juan A. Moreno" <jamf gm gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Custom icons and Gtk::IconTheme
- Date: Fri, 24 Jul 2009 18:59:11 +0200
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]