mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
Avoid a string copy
We have an api to create a quark from a static string, lets use it.
This commit is contained in:
parent
e1ecdd3ef5
commit
7cd7257a07
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user