summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/font-selector.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-05-03 14:03:49 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-05-03 14:03:49 +0000
commitcf2497268b7d18ef78932279d72f060cae9ec61d (patch)
tree0a607f82c91557db83eeff056d69a058f481ed3b /src/ui/widget/font-selector.cpp
parentSmall bug fixes to font-variations files. (diff)
downloadinkscape-cf2497268b7d18ef78932279d72f060cae9ec61d.tar.gz
inkscape-cf2497268b7d18ef78932279d72f060cae9ec61d.zip
Rename "Glyphs" dialog to "Unicode Characters" dialog to better reflect what it does.
Minor UI tweaks and bug fixes.
Diffstat (limited to 'src/ui/widget/font-selector.cpp')
-rw-r--r--src/ui/widget/font-selector.cpp6
1 files changed, 4 insertions, 2 deletions
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));