[gtk+] icon helper: Avoid a few string copies
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icon helper: Avoid a few string copies
- Date: Sat, 18 Nov 2017 04:22:18 +0000 (UTC)
commit 7c4a1a596f601516b6377d666a205e1a007c4822
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 17 23:21:24 2017 -0500
icon helper: Avoid a few string copies
gtk/gtkiconhelper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 902998b..ab42bb9 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -631,8 +631,8 @@ gtk_icon_size_set_style_classes (GtkCssNode *cssnode,
for (i = 0; i < G_N_ELEMENTS (class_names); i++)
{
if (icon_size == class_names[i].icon_size)
- gtk_css_node_add_class (cssnode, g_quark_from_string (class_names[i].class_name));
+ gtk_css_node_add_class (cssnode, g_quark_from_static_string (class_names[i].class_name));
else
- gtk_css_node_remove_class (cssnode, g_quark_from_string (class_names[i].class_name));
+ gtk_css_node_remove_class (cssnode, g_quark_from_static_string (class_names[i].class_name));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]