[geany/geany] a1145c: GTK: Fix autoc popup row height on GTK2 when it changes at runtime

Colomban Wendling git-noreply at xxxxx
Thu Nov 12 16:55:59 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 12 Nov 2015 16:55:59 UTC
Commit:      a1145c6ef6172262248007f0bfd3645e8c363bf8
             https://github.com/geany/geany/commit/a1145c6ef6172262248007f0bfd3645e8c363bf8

Log Message:
-----------
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.

Mostly closes #702.

X-Scintilla-Bug-URL: http://sourceforge.net/p/scintilla/bugs/1774/
X-Scintilla-Commit-ID: 547de78f2477e16b0d7241a217a1ead83a14c42b


Modified Paths:
--------------
    scintilla/gtk/PlatGTK.cxx

Modified: scintilla/gtk/PlatGTK.cxx
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -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);
 	}
 }
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list