[gtk+/gtk-style-context: 79/251] GtkStyleContext: fix typos in code.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 79/251] GtkStyleContext: fix typos in code.
- Date: Tue, 12 Oct 2010 02:01:46 +0000 (UTC)
commit 72dbae2ecff0c4f7be42566bf43304684d478e76
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Apr 23 02:33:01 2010 +0200
GtkStyleContext: fix typos in code.
The wrong list was being modified in gtk_style_context_set_child_class(),
and gtk_style_context_has_child_class() was checking for *flags != 0, not
flags != NULL.
gtk/gtkstylecontext.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index c4401cc..d0f95cf 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -513,7 +513,7 @@ gtk_style_context_set_child_class (GtkStyleContext *context,
priv = GTK_STYLE_CONTEXT_GET_PRIVATE (context);
class_quark = g_quark_from_string (class_name);
- link = priv->style_classes;
+ link = priv->child_style_classes;
while (link)
{
@@ -537,10 +537,10 @@ gtk_style_context_set_child_class (GtkStyleContext *context,
child_class->flags = flags;
if (link)
- priv->style_classes = g_list_insert_before (priv->style_classes,
- link, child_class);
+ priv->child_style_classes = g_list_insert_before (priv->child_style_classes,
+ link, child_class);
else
- priv->style_classes = g_list_append (priv->style_classes, child_class);
+ priv->child_style_classes = g_list_append (priv->child_style_classes, child_class);
}
void
@@ -603,7 +603,7 @@ gtk_style_context_has_child_class (GtkStyleContext *context,
if (link)
{
- if (*flags_return)
+ if (flags_return)
{
GtkChildClass *found_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]