After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339232 - App should have a factory method
App should have a factory method
Status: RESOLVED FIXED
Product: java-gnome
Classification: Bindings
Component: GNOME
mainline
Other Linux
: Normal normal
: ---
Assigned To: Remy Suen
java-gnome bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-20 22:11 UTC by Sean Coughlan
Modified: 2006-05-02 14:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Sean Coughlan 2006-04-20 22:11:45 UTC
Using Glade with App doesn't currently work.

adding the following snippet will corrent this:

    public static App getApp(Handle handle)
    {
        if (handle == null)
            return null;

        App app = (App) getGObjectFromHandle(handle);
        if (app == null)
            app = new App(handle);

        return app;
    }
Comment 1 Andrew Cowie 2006-05-02 13:38:58 UTC
Khiraly in #java-gnome mentioned he'd hit this as well.

AfC
Comment 2 Remy Suen 2006-05-02 14:53:54 UTC
This fix has been committed into CVS head, closing. Thanks for the report, Sean.