From e7b461381da7401ee281e428e72eaf9ed1e2c0c2 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 1 Oct 2019 16:01:30 +0200 Subject: Add tooltip showing larger version of glyph in Glyph dialog. Partially addresses https://gitlab.com/inkscape/inkscape/issues/436 --- src/ui/dialog/glyphs.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/ui/dialog/glyphs.cpp b/src/ui/dialog/glyphs.cpp index e115dbc56..6702d9357 100644 --- a/src/ui/dialog/glyphs.cpp +++ b/src/ui/dialog/glyphs.cpp @@ -304,11 +304,13 @@ class GlyphColumns : public Gtk::TreeModel::ColumnRecord public: Gtk::TreeModelColumn code; Gtk::TreeModelColumn name; + Gtk::TreeModelColumn tooltip; GlyphColumns() { add(code); add(name); + add(tooltip); } }; @@ -403,6 +405,7 @@ GlyphsPanel::GlyphsPanel() : iconView = new Gtk::IconView(static_cast >(store)); iconView->set_text_column(columns->name); + iconView->set_tooltip_column(2); // Uses Pango merkup, must use column number. //iconView->set_columns(16); sigc::connection conn; @@ -694,6 +697,7 @@ void GlyphsPanel::rebuild() tmp += it; (*row)[columns->code] = it; (*row)[columns->name] = tmp; + (*row)[columns->tooltip] = "" + tmp + ""; } // Reconnect the model once it has been updated: -- cgit v1.2.3