[gtk+] wayland: Use g_value_set_static to avoid string copies



commit b43d36d43d6f6f756f226c456c7917cc34d9d876
Author: Rob Bradford <rob linux intel com>
Date:   Tue Feb 5 18:28:43 2013 +0000

    wayland: Use g_value_set_static to avoid string copies

 gdk/wayland/gdkscreen-wayland.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c
index aecbd6f..77a4238 100644
--- a/gdk/wayland/gdkscreen-wayland.c
+++ b/gdk/wayland/gdkscreen-wayland.c
@@ -306,21 +306,21 @@ gdk_wayland_screen_get_setting (GdkScreen   *screen,
     {
       const gchar *s = "Adwaita";
       GDK_NOTE(MISC, g_print("gdk_screen_get_setting(\"%s\") : %s\n", name, s));
-      g_value_set_string (value, s);
+      g_value_set_static_string (value, s);
       return TRUE;
     }
   if (strcmp ("gtk-cursor-theme-name", name) == 0)
     {
       const gchar *s = "Adwaita";
       GDK_NOTE(MISC, g_print("gdk_screen_get_setting(\"%s\") : %s\n", name, s));
-      g_value_set_string (value, s);
+      g_value_set_static_string (value, s);
       return TRUE;
     }
   else if (strcmp ("gtk-icon-theme-name", name) == 0)
     {
       const gchar *s = "gnome";
       GDK_NOTE(MISC, g_print("gdk_screen_get_setting(\"%s\") : %s\n", name, s));
-      g_value_set_string (value, s);
+      g_value_set_static_string (value, s);
       return TRUE;
     }
   else if (strcmp ("gtk-double-click-time", name) == 0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]