Ticket #41 (closed enhancement: fixed)

Opened 9 years ago

Last modified 6 years ago

Add predicates for types of widgets.

Reported by: A.Simon@… Owned by: somebody
Priority: normal Milestone:
Component: general (Gtk+, Glib) Version:
Keywords: Cc:


It would be useful to have predicates for each widget type that can test an object if it is of that type. At the moment we need to use the castTo* functions and catch the error message that is returned if the cast failed.

Change History

Changed 7 years ago by hamish@…

  • version 0.9.11 deleted

I have sent a patch to the devel list that does this by way of an isA function and gType* functions. You can use it like so...

when (obj `isA` gTypeWidget) $ doSomething $ castToWidget obj

Changed 7 years ago by axel

  • status changed from new to closed
  • resolution set to fixed

Since this is now available as typeInstanceIsA in module System.Glib.GType I close this request.

Changed 6 years ago by Alvaro

Leela: And nappster says illegal copies never hurt anybody.

viagra cialis buy fioricet uk viagra postepay tramadol online use

Changed 6 years ago by Alvaro

"Every morning I wake up. And when I wake up I go to the Oval Office."

George W. Bush January 5, 2001 Town Hall Meeting in Ontario, CA. Source: C-SPAN. vendita viagra originale fioricet online cialis italia relieve pain

Note: See TracTickets for help on using tickets.