Re: [java-gnome-hackers] Adding switch-page signal
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2009-02-17 02:42:11
|
On Mon, 2009-02-16 at 20:30 +0100, Stefan Schweizer wrote: > I am attaching a bundle with what I have > so far, also a test that currently fails. You're a star. > Uncommenting the debug message reveals the following: > Java method receiveSwitchPage > with signature (Lorg/gnome/glib/Signal;JI)V > to handle signal switch-page > > So the page parameter is missing? I have no idea. Wow. That is weird. Of all the things I expected to see, that was certainly not it. I mean, in essence, that's what we _want_ it to be, right? With that as the signature we're being handed we could just edit that parameter out of the (define-virtual) and it'd work, and no need for the private handler class anything to trim the parameter. Which would be great. So we're done! Except for one thing. I don't know why we're getting handed a parameter sequence that is resulting in us calculating that signature. Where's the GtkNotebookPage* parameter? My guesses are that either, a) something in GTK is acting to hide that parameter (unlikely, given that pygtk see it). I read the source code in GTK for gtk/gtknotebook.c and I don't see anything changing the signal at registration or emission time. or b) something in our signal marshaling code is choking and causing us to skip that parameter. That'd be good if we were doing it on purpose. If we can work out which it is, then we can probably sort this out. There's still a lingering doubt about whether this signal is actually supposed to be public. Unfortunately GLib × gtkdoc doesn't have a mechanism for not presenting signals that are actually internal. AfC Sydney P.S. No need to address me as well. I'm subscribed to the mailing list. > > Stefan > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ java-gnome-hackers mailing list jav...@li... https://lists.sourceforge.net/lists/listinfo/java-gnome-hackers -- Andrew Frederick Cowie Operational Dynamics is an operations and engineering consultancy focusing on IT strategy, organizational architecture, systems review, and effective procedures for change management: enabling successful deployment of mission critical information technology in enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |