summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/combo-tool-item.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-05-28 16:38:25 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-05-28 16:38:25 +0000
commit10b1aecd8d885414229807196018cd32582bb085 (patch)
tree2a4b868ef1ca3f1a401394c738af33f6d4fbf3bb /src/ui/widget/combo-tool-item.cpp
parentHackfest2019: Drop deprecated prep-method for toolbars (diff)
downloadinkscape-10b1aecd8d885414229807196018cd32582bb085.tar.gz
inkscape-10b1aecd8d885414229807196018cd32582bb085.zip
Hackfest2019: Add an entry to ComboBoxToolItem
Diffstat (limited to 'src/ui/widget/combo-tool-item.cpp')
-rw-r--r--src/ui/widget/combo-tool-item.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/widget/combo-tool-item.cpp b/src/ui/widget/combo-tool-item.cpp
index a9952fce6..b8638ba72 100644
--- a/src/ui/widget/combo-tool-item.cpp
+++ b/src/ui/widget/combo-tool-item.cpp
@@ -34,15 +34,17 @@ ComboToolItem*
ComboToolItem::create(const Glib::ustring &group_label,
const Glib::ustring &tooltip,
const Glib::ustring &stock_id,
- Glib::RefPtr<Gtk::ListStore> store )
+ Glib::RefPtr<Gtk::ListStore> store,
+ bool has_entry)
{
- return new ComboToolItem(group_label, tooltip, stock_id, store);
+ return new ComboToolItem(group_label, tooltip, stock_id, store, has_entry);
}
ComboToolItem::ComboToolItem(Glib::ustring group_label,
Glib::ustring tooltip,
Glib::ustring stock_id,
- Glib::RefPtr<Gtk::ListStore> store ) :
+ Glib::RefPtr<Gtk::ListStore> store,
+ bool has_entry) :
_group_label(std::move( group_label )),
_tooltip(std::move( tooltip )),
_stock_id(std::move( stock_id )),
@@ -63,7 +65,7 @@ ComboToolItem::ComboToolItem(Glib::ustring group_label,
}
// Create combobox
- _combobox = Gtk::manage (new Gtk::ComboBox());
+ _combobox = Gtk::manage (new Gtk::ComboBox(has_entry));
_combobox->set_model(_store);
populate_combobox();