chiark / gitweb /
Made iter argument to TREE-MODEL-ITER-N-CHILDREN optional
[clg] / gtk / gtkwidget.lisp
index 07a6468f86624b4ec798b691d970a42297adbe09..9155813dfbcc86bfce17a3e7aba937f9e83d5402 100644 (file)
@@ -20,7 +20,7 @@
 ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-;; $Id: gtkwidget.lisp,v 1.24 2006-09-05 13:37:07 espen Exp $
+;; $Id: gtkwidget.lisp,v 1.25 2006-09-27 08:44:44 espen Exp $
 
 (in-package "GTK")
 
@@ -340,11 +340,11 @@ (defun widget-find (name &optional (root (nreverse (window-list-toplevels))) (er
    for widget in (mklist root)
    do (cond
        ((and (slot-boundp widget 'name) (string= name (widget-name widget)))
-       (return widget))
+       (return-from widget-find widget))
        ((typep widget 'container)
        (let ((descendant (widget-find name (container-children widget) nil)))
          (when descendant
-           (return descendant))))))
+           (return-from widget-find descendant))))))
   (when error-p
     (error "Widget not found: ~A" name)))