[gtk+/font-chooser] theming-engine: Adjust register_property() to recent glib change
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser] theming-engine: Adjust register_property() to recent glib change
- Date: Wed, 20 Jul 2011 20:17:22 +0000 (UTC)
commit 6440d0a06f33d50e801f5ffed2b60b83a55dc804
Author: Florian MÃllner <fmuellner gnome org>
Date: Fri Jul 15 20:45:59 2011 +0200
theming-engine: Adjust register_property() to recent glib change
GParamSpec now uses an intern'ed string for 'name', so the code
in gtk_theming_engine_register_property() which prefixes the name
with a namespace has to be adjusted.
https://bugzilla.gnome.org/show_bug.cgi?id=654695
gtk/gtkthemingengine.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 66adad6..64a2bc5 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -391,8 +391,8 @@ gtk_theming_engine_register_property (const gchar *name_space,
/* FIXME: hack hack hack, replacing pspec->name to include namespace */
name = g_strdup_printf ("-%s-%s", name_space, pspec->name);
- g_free (pspec->name);
- pspec->name = name;
+ pspec->name = (char *)g_intern_string (name);
+ g_free (name);
gtk_style_properties_register_property (parse_func, pspec);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]