summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dock-item.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-05-21 11:25:30 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-05-21 11:25:30 +0000
commita8a5397db22a0cbeecb46eee097adece5dedf14e (patch)
tree856e9393270cf1aecbd031a7441ab60ea67466a7 /src/ui/widget/dock-item.cpp
parentMore size-request GTK+ 3 fixes (diff)
downloadinkscape-a8a5397db22a0cbeecb46eee097adece5dedf14e.tar.gz
inkscape-a8a5397db22a0cbeecb46eee097adece5dedf14e.zip
GTK+ 3 changes for cell-renderers
(bzr r11392)
Diffstat (limited to 'src/ui/widget/dock-item.cpp')
-rw-r--r--src/ui/widget/dock-item.cpp4
1 files changed, 4 insertions, 0 deletions
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
}
}
}