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 0440743314cc7aa5828e5a43e85341a23aeb464e..d48fab8acc2a73b5ba8bfecb50e5bdc1643a99d7 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);