diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-03-18 12:59:29 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-03-18 12:59:29 +0000 |
| commit | 90559e4fd0192e6f167511248bf5a77fed7c9433 (patch) | |
| tree | 3dc9d3ff7bbbeb306182db9d7a5deb458caafeec /src/ui/widget/font-selector.cpp | |
| parent | Keep generic attributes with "Simplify" et. al (diff) | |
| download | inkscape-90559e4fd0192e6f167511248bf5a77fed7c9433.tar.gz inkscape-90559e4fd0192e6f167511248bf5a77fed7c9433.zip | |
Tweaks to allow one to reduce size of Text and Font dialog.
Enabled/addded scrollbars and made style treeview columns resizable.
Diffstat (limited to 'src/ui/widget/font-selector.cpp')
| -rw-r--r-- | src/ui/widget/font-selector.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ui/widget/font-selector.cpp b/src/ui/widget/font-selector.cpp index 2263862a0..4b9cdb87e 100644 --- a/src/ui/widget/font-selector.cpp +++ b/src/ui/widget/font-selector.cpp @@ -60,19 +60,20 @@ FontSelector::FontSelector (bool with_size, bool with_variations) style_treecolumn.pack_start (style_cell, false); style_treecolumn.add_attribute (style_cell, "text", 0); style_treecolumn.set_cell_data_func (style_cell, sigc::mem_fun(*this, &FontSelector::style_cell_data_func)); - style_treecolumn.set_max_width (200); style_treecolumn.set_title ("Face"); + style_treecolumn.set_resizable (true); style_treeview.set_model (font_lister->get_style_list()); style_treeview.set_name ("FontSelectorStyle"); style_treeview.append_column ("CSS", font_lister->FontStyleList.cssStyle); style_treeview.append_column (style_treecolumn); - style_treeview.get_column(0)->set_max_width (200); + style_treeview.get_column(0)->set_resizable (true); - style_scroll.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + style_scroll.set_policy (Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); style_scroll.add (style_treeview); + style_frame.set_hexpand (true); style_frame.set_vexpand (true); style_frame.add (style_scroll); @@ -82,7 +83,9 @@ FontSelector::FontSelector (bool with_size, bool with_variations) size_combobox.set_active_text( "18" ); // Font Variations - // Do nothing. + font_variations.set_vexpand (true); + font_variations_scroll.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + font_variations_scroll.add (font_variations); // Grid set_name ("FontSelectorGrid"); @@ -93,7 +96,7 @@ FontSelector::FontSelector (bool with_size, bool with_variations) attach (size_combobox, 2, 1, 1, 1); } if (with_variations) { // Glyphs panel does not use variations. - attach (font_variations, 0, 2, 3, 1); + attach (font_variations_scroll, 0, 2, 3, 1); } // Add signals |
