diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-04-25 14:29:08 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-04-25 14:29:08 +0000 |
| commit | c259adc37c0b0df32a28d70e51d7fde0968b4cdc (patch) | |
| tree | 275c61d132acae5b1d90f45f2e7a6c38159aeebb /src/ui/dialog/glyphs.cpp | |
| parent | fix bug on compile (diff) | |
| download | inkscape-c259adc37c0b0df32a28d70e51d7fde0968b4cdc.tar.gz inkscape-c259adc37c0b0df32a28d70e51d7fde0968b4cdc.zip | |
Implement FontSelectorToolbar.
A version of FontSelector designed for the text toolbar.
This is meant as a replacement for Ink_ComboBoxEntry_Action.
It is not ready for use.
Also includes some code cleanup.
Diffstat (limited to 'src/ui/dialog/glyphs.cpp')
| -rw-r--r-- | src/ui/dialog/glyphs.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ui/dialog/glyphs.cpp b/src/ui/dialog/glyphs.cpp index 07973b4c0..0a62fd8c1 100644 --- a/src/ui/dialog/glyphs.cpp +++ b/src/ui/dialog/glyphs.cpp @@ -336,9 +336,9 @@ GlyphsPanel::GlyphsPanel() : { fontSelector = new Inkscape::UI::Widget::FontSelector (false); - fontSelector->set_fontsize_visible (false); - fontSelector->set_size (12.0); fontSelector->set_name ("Glyphs"); + fontSelector->set_fontsize_visible (false); + fontSelector->update_size (12.0); sigc::connection conn = fontSelector->connectChanged(sigc::hide(sigc::mem_fun(*this, &GlyphsPanel::rebuild))); @@ -636,11 +636,8 @@ void GlyphsPanel::readSelection( bool updateStyle, bool updateContent ) // Update family/style based on selection. fontlister->selection_update(); - // Get fontspec for selection. - Glib::ustring fontspec = fontlister->get_fontspec(); - - // Update GUI. - fontSelector->set_fontspec (fontspec); + // Update GUI (based on fontlister values). + fontSelector->update_font (); } } |
