X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/7b7a1df9a19e16fdb840f1f0aff78da626fde8d9..9afb775d6948dea9e0c6125016c94b55dce90d70:/gtk/gtkwidget.lisp diff --git a/gtk/gtkwidget.lisp b/gtk/gtkwidget.lisp index 06bd1a0..1547716 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)))