Author: toshok
Date: 2007-10-09 18:06:54 -0400 (Tue, 09 Oct 2007)
New Revision: 87232
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/clock.cpp
Log:
2007-10-09 Chris Toshok <[EMAIL PROTECTED]>
* clock.cpp (ClockGroup::Stop): If the clock group has children we
depend on stopping them first. But if the clock group is without
children, chain up to Clock::Stop here.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-09 22:06:49 UTC (rev 87231)
+++ trunk/moon/src/ChangeLog 2007-10-09 22:06:54 UTC (rev 87232)
@@ -1,3 +1,9 @@
+2007-10-09 Chris Toshok <[EMAIL PROTECTED]>
+
+ * clock.cpp (ClockGroup::Stop): If the clock group has children we
+ depend on stopping them first. But if the clock group is without
+ children, chain up to Clock::Stop here.
+
2007-10-09 Jb Evain <[EMAIL PROTECTED]>
* uielement.h: define new methods RenderClipPath and
Modified: trunk/moon/src/clock.cpp
===================================================================
--- trunk/moon/src/clock.cpp 2007-10-09 22:06:49 UTC (rev 87231)
+++ trunk/moon/src/clock.cpp 2007-10-09 22:06:54 UTC (rev 87232)
@@ -739,10 +739,14 @@
void
ClockGroup::Stop ()
{
- for (GList *l = child_clocks; l; l = l->next) {
- Clock *c = (Clock*)l->data;
- c->Stop ();
+ if (child_clocks) {
+ for (GList *l = child_clocks; l; l = l->next) {
+ Clock *c = (Clock*)l->data;
+ c->Stop ();
+ }
}
+ else
+ Clock::Stop ();
}
void
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches