diff options
| author | Colomban Wendling <ban@herbesfolles.org> | 2015-10-25 21:57:36 +0100 |
|---|---|---|
| committer | Colomban Wendling <ban@herbesfolles.org> | 2015-10-25 21:57:36 +0100 |
| commit | 3a1c1e2dfe31c432adb81879353c618ad9949a65 (patch) | |
| tree | ff07527dc6ffbe1009ea833ead9d9c801bb548f4 /gtk/PlatGTK.cxx | |
| parent | 9255ca15e02e22b098aed5b30908448db909d098 (diff) | |
| download | scintilla-mirror-3a1c1e2dfe31c432adb81879353c618ad9949a65.tar.gz | |
GTK: Fix autoc popup row height on GTK2 when it changes at runtime
Now the popup is cached the row height has to be re-computed when the
font changes on GTK2 too.
Closes [bugs:1774].
Diffstat (limited to 'gtk/PlatGTK.cxx')
| -rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index e690e0c8e..58b0e1364 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1691,11 +1691,11 @@ void ListBoxX::SetFont(Font &scint_font) { gtk_css_provider_load_from_data(GTK_CSS_PROVIDER(cssProvider), ssFontSetting.str().c_str(), -1, NULL); } - gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(renderer), -1); - gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(renderer), 1); #else gtk_widget_modify_font(PWidget(list), PFont(scint_font)->pfd); #endif + gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(renderer), -1); + gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(renderer), 1); } } |
