diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-21 11:25:30 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-21 11:25:30 +0000 |
| commit | a8a5397db22a0cbeecb46eee097adece5dedf14e (patch) | |
| tree | 856e9393270cf1aecbd031a7441ab60ea67466a7 /src/ui/widget/dock-item.cpp | |
| parent | More size-request GTK+ 3 fixes (diff) | |
| download | inkscape-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.cpp | 4 |
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 } } } |
