Re: [java-gnome-hackers] Adding switch-page signal
Brought to you by:
afcowie
From: Stefan S. <ste...@gm...> - 2009-02-15 12:56:01
|
On Sat, 2009-02-14 at 22:03 +1100, Andrew Cowie wrote: > That _might_ work. I kinda doubt it, actually, but it might do as a > kludge. A patch bundle to this effect is attached. Unfortunately changing the parameter to glong did not work. I get a "java.lang.NoSuchMethodError: receiveSwitchPage" when connecting to the signal. > Or, finally, the worst case scenario is that we have to create a new > Boxed type NotebookPage. THAT will certainly work, and indeed is the > most "proper" solution, although it'd be kinda silly to have to do so > if > we can avoid it. I've been working fairly hard to get _rid_ of no-op > type declarations like this. I also tried to create NotebookPage as new type but it resulted in a NoSuchMethodError as well. Here is the defs file that I used: (define-boxed NotebookPage (in-module "Gtk") (c-name "GtkNotebookPage") (gtype-id "G_TYPE_POINTER") ) Maybe something is missing or wrong, especially I do not know what to use for copy-func and release-func. Stefan |