From cf2497268b7d18ef78932279d72f060cae9ec61d Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 3 May 2018 16:03:49 +0200 Subject: Rename "Glyphs" dialog to "Unicode Characters" dialog to better reflect what it does. Minor UI tweaks and bug fixes. --- src/ui/widget/font-selector.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ui/widget/font-selector.cpp') diff --git a/src/ui/widget/font-selector.cpp b/src/ui/widget/font-selector.cpp index a0d651010..c83e80350 100644 --- a/src/ui/widget/font-selector.cpp +++ b/src/ui/widget/font-selector.cpp @@ -27,7 +27,7 @@ namespace Inkscape { namespace UI { namespace Widget { -FontSelector::FontSelector (bool with_size) +FontSelector::FontSelector (bool with_size, bool with_variations) : Gtk::Grid () , family_frame (_("Font family")) , style_frame (C_("Font selector", "Style")) @@ -91,7 +91,9 @@ FontSelector::FontSelector (bool with_size) attach (size_label, 1, 1, 1, 1); attach (size_combobox, 2, 1, 1, 1); } - attach (font_variations, 0, 2, 3, 1); + if (with_variations) { // Glyphs panel does not use variations. + attach (font_variations, 0, 2, 3, 1); + } // Add signals family_treeview.get_selection()->signal_changed().connect(sigc::mem_fun(*this, &FontSelector::on_family_changed)); -- cgit v1.2.3