[gtk/matthiasc/expression] expression: Fix nested watching
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/expression] expression: Fix nested watching
- Date: Fri, 29 Nov 2019 15:42:23 +0000 (UTC)
commit 085928c43e04ab35d4ee42103a0bb4dd5f818dd4
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 29 10:41:08 2019 -0500
expression: Fix nested watching
There was an unnecessary early exit in the code creating
closures, causing one of the expression tests to fail.
gtk/gtkexpression.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/gtk/gtkexpression.c b/gtk/gtkexpression.c
index a77d159097..8c73a5ad9c 100644
--- a/gtk/gtkexpression.c
+++ b/gtk/gtkexpression.c
@@ -445,8 +445,6 @@ gtk_property_expression_watch_create_closure (GtkPropertyExpressionWatch *pwatch
GtkPropertyExpression *self = (GtkPropertyExpression *) watch->expression;
GObject *object;
- if (pwatch->this == NULL)
- return;
object = gtk_property_expression_get_object (self, pwatch->this);
if (object == NULL)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]