summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-09-07 11:34:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-09-07 11:36:36 -0400
commit7cd7257a079166ae56e719d4f60e027247cda617 (patch)
treea802e05d717b2fc55e1a1325b07bb16c9c157a02 /gtk
parente1ecdd3ef5f766e5e61c485fcb9bc33508c94b54 (diff)
downloadgtk+-7cd7257a079166ae56e719d4f60e027247cda617.tar.gz
Avoid a string copy
We have an api to create a quark from a static string, lets use it.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkcssstaticstyle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssstaticstyle.c b/gtk/gtkcssstaticstyle.c
index ab7e76ef75..34563e0157 100644
--- a/gtk/gtkcssstaticstyle.c
+++ b/gtk/gtkcssstaticstyle.c
@@ -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);