Fix ‘GtkWidget {aka struct _GtkWidget}’ has no member named ‘style’
authorRicardo Mones <ricardo@mones.org>
Thu, 8 Feb 2018 08:41:51 +0000 (09:41 +0100)
committerRicardo Mones <ricardo@mones.org>
Thu, 8 Feb 2018 08:41:51 +0000 (09:41 +0100)
Thanks to Abhay S. Kushwaha for reporting!

src/wizard.c

index 0440743..d48fab8 100644 (file)
@@ -439,7 +439,8 @@ static void initialize_fonts(WizardWindow *wizard)
        gchar *tmp, *new;
 #ifdef G_OS_WIN32
        PangoFontDescription *bold_desc;
-       gchar *curfont = pango_font_description_to_string(widget->style->font_desc);
+       gchar *curfont = pango_font_description_to_string(
+                       gtk_widget_get_style(widget)->font_desc);
        g_free(prefs_common.smallfont);
        g_free(prefs_common.normalfont);
        g_free(prefs_common.boldfont);