[gtk+/wip/css: 25/37] stylecontext: On failure, exit the loop, don't try again
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 25/37] stylecontext: On failure, exit the loop, don't try again
- Date: Fri, 23 Mar 2012 02:18:50 +0000 (UTC)
commit db19a1d242cf9ac20c4c9bd09f2f2a25a8eb6b35
Author: Benjamin Otte <otte redhat com>
Date: Tue Mar 20 03:44:26 2012 +0100
stylecontext: On failure, exit the loop, don't try again
Because we will fail again. And then we try again. And then we fail
again. Ad infinitum.
gtk/gtkstylecontext.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 3a37c8e..94a19da 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -2478,7 +2478,7 @@ gtk_style_context_get_style_valist (GtkStyleContext *context,
G_STRLOC,
g_type_name (widget_type),
prop_name);
- continue;
+ break;
}
peek_value = _gtk_style_context_peek_style_property (context, widget_type,
@@ -2493,6 +2493,7 @@ gtk_style_context_get_style_valist (GtkStyleContext *context,
G_VALUE_TYPE_NAME (peek_value),
error);
g_free (error);
+ break;
}
prop_name = va_arg (args, const gchar *);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]