Avoid a string copy

We have an api to create a quark from a static string, lets use it.
This commit is contained in:
Matthias Clasen 2015-09-07 11:34:08 -04:00
parent e1ecdd3ef5
commit 7cd7257a07

View File

@ -149,7 +149,7 @@ gtk_css_static_style_get_default (void)
GtkCssStyle *result;
if (style_quark == 0)
style_quark = g_quark_from_string ("gtk-default-style");
style_quark = g_quark_from_static_string ("gtk-default-style");
settings = gtk_settings_get_for_screen (gdk_screen_get_default ());
result = g_object_get_qdata (G_OBJECT (settings), style_quark);