From a8a5397db22a0cbeecb46eee097adece5dedf14e Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Mon, 21 May 2012 12:25:30 +0100 Subject: GTK+ 3 changes for cell-renderers (bzr r11392) --- src/ui/widget/dock-item.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/widget/dock-item.cpp') diff --git a/src/ui/widget/dock-item.cpp b/src/ui/widget/dock-item.cpp index 0f93968e5..b9cc50845 100644 --- a/src/ui/widget/dock-item.cpp +++ b/src/ui/widget/dock-item.cpp @@ -58,7 +58,11 @@ DockItem::DockItem(Dock& dock, const Glib::ustring& name, const Glib::ustring& l Gtk::StockItem item; Gtk::StockID stockId(icon_name); if ( Gtk::StockItem::lookup(stockId, item) ) { +#if WITH_GTKMM_3_0 + _icon_pixbuf = _dock.getWidget().render_icon_pixbuf( stockId, Gtk::ICON_SIZE_MENU ); +#else _icon_pixbuf = _dock.getWidget().render_icon( stockId, Gtk::ICON_SIZE_MENU ); +#endif } } } -- cgit v1.2.3