Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=YNhiP1si9mqkbd4e2xth1N7ztzoI0go5ZLEi480xJHM=; b=hNVhRTYkxk6cq7Ubxi3ECDuyCPMoGXXtzwQSh05aZnOKBBUBOZEHTSlvlHLO6QiG/h 5RRVc+U+ekjwEB3K5hXZKVU0IwW5/dEELsn/98VV45oNLfE0kdaokMf8c4M/Lchjw3h1 rjUZPdOfWUHbLIb2ut/jBXadon8AUXLqmpLm8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=R0gVrFVKnBub/YqQzd1J0jw+d22XkpBWsNApvMYGXBY7n0o+MwyXcJZVatzVEWsUrh XBQog8Qy9jPDSpwoHLYAMuYviU+Z3Dk12+dAJsfPL6PVNMi3OZheJXpqYSBsiA/kk41H uJsihF4tPPv1ICdIGNjuX8lp+QBBLDky58Lz4= MIME-Version: 1.0 Date: Sat, 2 Jan 2010 15:35:52 +0100 Message-ID: <666572261001020635pe8a2e56m6bcd5bb162751792 at mail.gmail.com> Subject: [Lablgtk] Re-emit signal a received signal From: Adrien To: lablgtk Content-Type: text/plain; charset=ISO-8859-1 Hi, I'd like that when a widget receives a signal, it emits another signal with the same data to another widget. Let's say I have the following hierarchy: window -> box -> button I put an event handler on the button and I'd like that when the box receives a key_press signal, it gets forwarded to the button and (of course my actual problem is more complicated than two widgets). I found GtkSignal.emit but I don't know how to use it with type Gdk.event. I tried to send the signal data with `CAML (Obj.repr gdk_keysym) but that doesn't work (it's not compatible with what g_value_set_variant() accepts). Is this doable? Also, is there any rule or documentation about the data_set type in Gobject? Thanks. --- Adrien Nader _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk