Bug 887816 - Port GTK2 to GTK3 - color fixes. r=karlt

This commit is contained in:
Martin Stransky 2013-07-01 09:55:21 -04:00
parent 357200ae5b
commit 49b60728db

View File

@ -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);