[gtk+] GtkThemingEngine: Use ::name when registering style props.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkThemingEngine: Use ::name when registering style props.
- Date: Sat, 4 Dec 2010 15:06:42 +0000 (UTC)
commit a8a1d8cd01e7d4c7e710842f5a25073aa27372b7
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Oct 27 23:23:14 2010 +0200
GtkThemingEngine: Use ::name when registering style props.
gtk/gtkthemingengine.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index e69a1df..9fa5f27 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -325,7 +325,7 @@ _gtk_theming_engine_set_context (GtkThemingEngine *engine,
* on the CSS file the property will look like
* "-${engine-object-name}-${ property_name}". being
* ${engine-object-name} either the GtkThemingEngine:name property
- * or G_OBJECT_TYPE_NAME(engine).
+ * or G_OBJECT_TYPE_NAME(engine) if the property is unset.
*
* For any type a @parse_func may be provided, being this function
* used for turning any property value (between ':' and ';') in
@@ -360,7 +360,8 @@ gtk_theming_engine_register_property (GtkThemingEngine *engine,
GtkStylePropertyParser parse_func)
{
GtkThemingEnginePrivate *priv;
- gchar *engine_name, *name;
+ const gchar *engine_name;
+ gchar *name;
g_return_if_fail (GTK_IS_THEMING_ENGINE (engine));
g_return_if_fail (property_name != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]