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 316721 - IconSource methods have incorrect names
IconSource methods have incorrect names
Status: VERIFIED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other Linux
: Normal normal
: ---
Assigned To: Ismael Juma
Ismael Juma
Depends on:
Blocks:
 
 
Reported: 2005-09-19 19:13 UTC by Remy Suen
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to change the method names to IconSource (1.41 KB, patch)
2005-09-19 19:28 UTC, Remy Suen
none Details | Review

Description Remy Suen 2005-09-19 19:13:13 UTC
Distribution/Version: Gentoo

The last three methods in IconSource.c has names that uses IconFactory instead
of IconSource.

JNIEXPORT jint JNICALL Java_org_gnu_gtk_IconFactory_gtk_1icon_1source_1get_1type
(JNIEnv *env, jclass cls)

JNIEXPORT void JNICALL
Java_org_gnu_gtk_IconFactory_gtk_1icon_1source_1set_1icon_1name
(JNIEnv *env, jclass cls, jobject source, jstring icon_name)

JNIEXPORT jstring JNICALL
Java_org_gnu_gtk_IconFactory_gtk_1icon_1source_1get_1icon_1name
(JNIEnv *env, jclass cls, jobject source)

This causes UnsatisfiedLinkErrors when you try to run a program that would
invoke one of these commands.

Test Case:
import org.gnu.gtk.*;

public class Main {
    
    public static void main(String[] args) throws Exception {
        Gtk.init(args);
        IconSource is = new IconSource();
        is.setIconName("gnome-globe");
        IconSet set = new IconSet();
        set.addSource(is);
        Image i = new Image(set, IconSize.BUTTON);
        
        Window w = new Window(WindowType.TOPLEVEL);
        w.add(i);
        w.showAll();
        Gtk.main();
    }
}
Comment 1 Remy Suen 2005-09-19 19:28:29 UTC
Created attachment 52403 [details] [review]
patch to change the method names to IconSource
Comment 2 Ismael Juma 2005-09-20 08:24:35 UTC
Thanks for the report, the test case and the patch. Applied to CVS HEAD.