diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-06-12 15:14:48 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-06-12 15:14:48 +0000 |
| commit | 384c21c3bccef3a2f8f50236f87b87df29aa9e95 (patch) | |
| tree | 4a470913e5ded0f04dcbbce99bf593cf100eec49 /src/widgets/icon.cpp | |
| parent | Fix Apache2 license conflict with GPL with re-license from SOIX upstream (diff) | |
| download | inkscape-384c21c3bccef3a2f8f50236f87b87df29aa9e95.tar.gz inkscape-384c21c3bccef3a2f8f50236f87b87df29aa9e95.zip | |
Use fixed inkscape icon for 'no-marker' instead of gtk theme icon
(bzr r12371)
Diffstat (limited to 'src/widgets/icon.cpp')
| -rw-r--r-- | src/widgets/icon.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp index d613ca55d..dda453bc4 100644 --- a/src/widgets/icon.cpp +++ b/src/widgets/icon.cpp @@ -867,6 +867,13 @@ GtkWidget *sp_icon_new( Inkscape::IconSize lsize, gchar const *name ) return IconImpl::newFull( lsize, name ); } +// PUBLIC CALL for when you REALLY need a pixbuf +GdkPixbuf *sp_pixbuf_new( Inkscape::IconSize lsize, gchar const *name ) +{ + int psize = IconImpl::getPhysSize(lsize); + return IconImpl::renderup(name, lsize, psize); +} + // PUBLIC CALL: Gtk::Widget *sp_icon_get_icon( Glib::ustring const &oid, Inkscape::IconSize size ) { |
