X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/2b18bfaf9fd19cafb2dab00095dcfb6bf8cc55dc..995eb841c0c43cb35740619c5ae9c0bde939b18b:/gtk/gtkwidget.lisp diff --git a/gtk/gtkwidget.lisp b/gtk/gtkwidget.lisp index 07a6468..9155813 100644 --- a/gtk/gtkwidget.lisp +++ b/gtk/gtkwidget.lisp @@ -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)))