avoid deprecated gtk_style_context_get_font(), closes #15697
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -254,9 +254,9 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
|
||||
gtk_style_context_get_background_color(sc, stateFlag, &c);
|
||||
attr.colBg = wxColour(c);
|
||||
wxNativeFontInfo info;
|
||||
info.description = const_cast<PangoFontDescription*>(gtk_style_context_get_font(sc, stateFlag));
|
||||
gtk_style_context_get(
|
||||
sc, stateFlag, GTK_STYLE_PROPERTY_FONT, &info.description, NULL);
|
||||
attr.font = wxFont(info);
|
||||
info.description = NULL;
|
||||
#else
|
||||
GtkStyle* style;
|
||||
|
||||
|
Reference in New Issue
Block a user