mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 887816 - Port GTK2 to GTK3 - color fixes. r=karlt
This commit is contained in:
parent
357200ae5b
commit
49b60728db
@ -1013,13 +1013,10 @@ nsLookAndFeel::Init()
|
||||
g_object_unref(style);
|
||||
|
||||
// Text colors
|
||||
GtkWidget *textView = gtk_text_view_new();
|
||||
style = gtk_widget_get_style_context(textView);
|
||||
gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color);
|
||||
gtk_style_context_get_background_color(mViewStyle, GTK_STATE_FLAG_NORMAL, &color);
|
||||
sMozFieldBackground = GDK_RGBA_TO_NS_RGBA(color);
|
||||
gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color);
|
||||
gtk_style_context_get_color(mViewStyle, GTK_STATE_FLAG_NORMAL, &color);
|
||||
sMozFieldText = GDK_RGBA_TO_NS_RGBA(color);
|
||||
gtk_widget_destroy(textView);
|
||||
|
||||
// Window colors
|
||||
style = create_context(path);
|
||||
|
Loading…
Reference in New Issue
Block a user