summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/ink-select-one-action.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-01-23 09:00:08 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-01-23 09:00:08 +0000
commit19aa6a7dd1b0efea6e90756100b8f5b0d5a53004 (patch)
treebea6110a49d50d68efd069ec275d934c44a44421 /src/ui/widget/ink-select-one-action.cpp
parentAdd FindNSIS and fix prefix (diff)
parentCPack fixes (diff)
downloadinkscape-19aa6a7dd1b0efea6e90756100b8f5b0d5a53004.tar.gz
inkscape-19aa6a7dd1b0efea6e90756100b8f5b0d5a53004.zip
Merge branch 'master' of gitlab.com:marcjeanmougin/inkscape
Diffstat (limited to '')
-rw-r--r--src/ui/widget/ink-select-one-action.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/widget/ink-select-one-action.cpp b/src/ui/widget/ink-select-one-action.cpp
index 42a63adf0..da130ec1d 100644
--- a/src/ui/widget/ink-select-one-action.cpp
+++ b/src/ui/widget/ink-select-one-action.cpp
@@ -53,6 +53,7 @@ InkSelectOneAction::InkSelectOneAction (const Glib::ustring &name,
_use_radio (true),
_use_label (true),
_use_icon (true),
+ _use_pixbuf (false),
_icon_size ( Gtk::ICON_SIZE_LARGE_TOOLBAR ),
_combobox (nullptr),
_radioaction (nullptr),
@@ -192,11 +193,16 @@ Gtk::Widget* InkSelectOneAction::create_tool_item_vfunc() {
_combobox->set_model(_store);
InkSelectOneActionColumns columns;
- if (_use_icon ) {
+ if (_use_icon) {
Gtk::CellRendererPixbuf *renderer = new Gtk::CellRendererPixbuf;
renderer->set_property ("stock_size", Gtk::ICON_SIZE_LARGE_TOOLBAR);
_combobox->pack_start (*renderer, false);
_combobox->add_attribute (*renderer, "icon_name", columns.col_icon );
+ } else if (_use_pixbuf) {
+ Gtk::CellRendererPixbuf *renderer = new Gtk::CellRendererPixbuf;
+ //renderer->set_property ("stock_size", Gtk::ICON_SIZE_LARGE_TOOLBAR);
+ _combobox->pack_start (*renderer, false);
+ _combobox->add_attribute (*renderer, "pixbuf", columns.col_pixbuf );
}
if (_use_label) {