diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-12 06:31:44 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-12 06:31:44 +0000 |
| commit | c7f3577f6c28f0a4f452b194a39e910cdb193e02 (patch) | |
| tree | 18d2304f57aae41b3e8bb4d7b628e3fe57958e2e /src/ui/widget/combo-tool-item.cpp | |
| parent | Remove a lonly header noticed by Maren (diff) | |
| download | inkscape-c7f3577f6c28f0a4f452b194a39e910cdb193e02.tar.gz inkscape-c7f3577f6c28f0a4f452b194a39e910cdb193e02.zip | |
Fix non changing value on combobox. This can also be used in other toolbars
Diffstat (limited to 'src/ui/widget/combo-tool-item.cpp')
| -rw-r--r-- | src/ui/widget/combo-tool-item.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/widget/combo-tool-item.cpp b/src/ui/widget/combo-tool-item.cpp index c3adf921f..ce366d0fc 100644 --- a/src/ui/widget/combo-tool-item.cpp +++ b/src/ui/widget/combo-tool-item.cpp @@ -58,7 +58,6 @@ ComboToolItem::ComboToolItem(Glib::ustring group_label, { Gtk::Box* box = Gtk::manage(new Gtk::Box()); add(*box); - if (_use_group_label) { Gtk::Label *group_label = Gtk::manage (new Gtk::Label( _group_label + ": " )); box->add( *group_label ); @@ -72,13 +71,19 @@ ComboToolItem::ComboToolItem(Glib::ustring group_label, _combobox->signal_changed().connect( sigc::mem_fun(*this, &ComboToolItem::on_changed_combobox)); - box->add (*_combobox); show_all(); } void +ComboToolItem::focus_on_click( bool focus_on_click ) +{ + _combobox->set_focus_on_click(focus_on_click); +} + + +void ComboToolItem::use_label(bool use_label) { _use_label = use_label; |
