diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-02-26 01:17:47 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-02-26 01:17:47 +0000 |
| commit | c80a4f06c384746f4c3abd28c64cb65e6ff54ceb (patch) | |
| tree | 0fd7b363e02dd8accb9b9a33c97a61bf5209bf71 /src/ui/widget | |
| parent | Seperate out center alignment and add sepcific tool text for it (diff) | |
| download | inkscape-c80a4f06c384746f4c3abd28c64cb65e6ff54ceb.tar.gz inkscape-c80a4f06c384746f4c3abd28c64cb65e6ff54ceb.zip | |
Prevent text dialog to become too wide.
This is probably not the optimal way to do this and should be studied further.
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/font-selector.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/widget/font-selector.cpp b/src/ui/widget/font-selector.cpp index 207d508df..dd33940fc 100644 --- a/src/ui/widget/font-selector.cpp +++ b/src/ui/widget/font-selector.cpp @@ -60,13 +60,16 @@ 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_treeview.set_model (font_lister->get_style_list()); - style_treeview.set_name ("FontSelector: Style"); + 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_scroll.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); style_scroll.add (style_treeview); @@ -74,7 +77,7 @@ FontSelector::FontSelector (bool with_size, bool with_variations) style_frame.add (style_scroll); // Size - size_combobox.set_name ("FontSelector: Size"); + size_combobox.set_name ("FontSelectorSize"); set_sizes(); size_combobox.set_active_text( "18" ); @@ -82,7 +85,7 @@ FontSelector::FontSelector (bool with_size, bool with_variations) // Do nothing. // Grid - set_name ("FontSelector: Grid"); + set_name ("FontSelectorGrid"); attach (family_frame, 0, 0, 1, 2); attach (style_frame, 1, 0, 2, 1); if (with_size) { // Glyph panel does not use size. |
