X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74f551959f777d3d8993f9fac3a0b501ab95041a..79f585d90388128f9d245f7c92d3013b98b9ed14:/src/gtk1/settings.cpp diff --git a/src/gtk1/settings.cpp b/src/gtk1/settings.cpp index 29e3b821f9..658c74ab4e 100644 --- a/src/gtk1/settings.cpp +++ b/src/gtk1/settings.cpp @@ -164,13 +164,13 @@ wxColour wxSystemSettings::GetSystemColour( int index ) { GtkWidget *widget = gtk_list_new(); GtkStyle *def = gtk_rc_get_style( widget ); - if (!def) + if (!def) def = gtk_widget_get_default_style(); if (def) { - int red = def->bg[GTK_STATE_NORMAL].red; - int green = def->bg[GTK_STATE_NORMAL].green; - int blue = def->bg[GTK_STATE_NORMAL].blue; + int red = def->base[GTK_STATE_NORMAL].red; + int green = def->base[GTK_STATE_NORMAL].green; + int blue = def->base[GTK_STATE_NORMAL].blue; g_systemListBoxColour = new wxColour( red >> SHIFT, green >> SHIFT, @@ -179,7 +179,6 @@ wxColour wxSystemSettings::GetSystemColour( int index ) else g_systemListBoxColour = new wxColour(*wxWHITE); gtk_widget_destroy( widget ); - } return *g_systemListBoxColour; }