hippo-canvas r7295 - trunk/python
- From: otaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: hippo-canvas r7295 - trunk/python
- Date: Fri, 24 Oct 2008 16:01:24 +0000 (UTC)
Author: otaylor
Date: Fri Oct 24 16:01:24 2008
New Revision: 7295
URL: http://svn.gnome.org/viewvc/hippo-canvas?rev=7295&view=rev
Log:
Handle the case where hippo_canvas_box_find_box_child() returns NULL
(patch from Tomeu Vizoso)
Modified:
trunk/python/hippo.override
Modified: trunk/python/hippo.override
==============================================================================
--- trunk/python/hippo.override (original)
+++ trunk/python/hippo.override Fri Oct 24 16:01:24 2008
@@ -339,7 +339,12 @@
box_child = hippo_canvas_box_find_box_child(HIPPO_CANVAS_BOX(self->obj), HIPPO_CANVAS_ITEM(child->obj));
- return py_hippo_canvas_box_child_new(box_child);
+ if (box_child)
+ return py_hippo_canvas_box_child_new(box_child);
+ else {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
}
%%
override hippo_canvas_box_get_layout_children noargs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]