diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2019-02-03 18:42:15 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2019-02-03 18:42:15 +0000 |
| commit | 75064d97c015e5ed87de38411fbd8b046d450793 (patch) | |
| tree | 49d675b66f85ec788b64761409e9fbc3892c7c0f /src/ui/widget/unit-tracker.h | |
| parent | Merge branch 'master' of gitlab.com:inkscape/inkscape (diff) | |
| download | inkscape-75064d97c015e5ed87de38411fbd8b046d450793.tar.gz inkscape-75064d97c015e5ed87de38411fbd8b046d450793.zip | |
UnitTracker: Create tool item without using GtkAction
Diffstat (limited to 'src/ui/widget/unit-tracker.h')
| -rw-r--r-- | src/ui/widget/unit-tracker.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/widget/unit-tracker.h b/src/ui/widget/unit-tracker.h index f4d3b114d..c876d8224 100644 --- a/src/ui/widget/unit-tracker.h +++ b/src/ui/widget/unit-tracker.h @@ -37,6 +37,7 @@ typedef struct _GtkListStore GtkListStore; namespace Inkscape { namespace UI { namespace Widget { +class ComboToolItem; class UnitTracker { public: @@ -58,11 +59,13 @@ public: Glib::ustring const &label, Glib::ustring const &tooltip); + ComboToolItem *create_tool_item(Glib::ustring const &label, + Glib::ustring const &tooltip); + protected: UnitType _type; private: - // Callbacks void _unitChangedCB(int active); static void _actionFinalizedCB(gpointer data, GObject *where_the_object_was); @@ -82,6 +85,7 @@ private: Glib::RefPtr<Gtk::ListStore> _store; std::vector<InkSelectOneAction*> _actionList; + std::vector<ComboToolItem *> _combo_list; std::vector<GtkAdjustment*> _adjList; std::map <GtkAdjustment *, gdouble> _priorValues; }; |
