Re: [Java-gnome-developer] Add tray support
Brought to you by:
afcowie
From: Yuedong Du <yue...@su...> - 2003-12-30 11:12:18
|
Hi Mark and all, My tray icon now working very well in java application. Thanks java-gnome developer team! However, some small problem leaved unresolved. 1. I use tools/DesProcessor to generate jni/java code. But the generated jni default prefix to org_gnu_gnome_XXX. How can I control it? For example, I want to prefix them to org_gnu_egg. 2. The function egg_tray_icon_new has parameter of char * , so in my defs: (define-func egg_tray_icon_new EggTrayIcon ((string name))) The generated java code, the native interface is defined as: ... ... native static final protected int egg_tray_icon_new (byte[] name); ... ... Thus 'String' in defs is convert to 'byte[]' in java. But I found in some gtk functions, ('string name') in defs is convert to 'String' in java. I like this way. But how can I generate 'String' instead of 'byte[]'? Thanks Yuedong Du Mark Howard wrote: >Hi, > Java-Gnome does not have any support for libegg at the moment. It is >unlikely that we will add it in the future either, since libegg changes >very quickly. However, the best bits of libegg always move into standard >gtk/gnome once they become stable and are accepted as being useful. Once >they are there, java-gnome will support them. Our new release schedule >means that our support for them will be very shortly after gnome >supports them. > >(For those reading this who don't know, libegg is a library for new >widgets which are being developed. It changes very quickly and so is >not usually supported by many applications. However, once widgets in >libegg are proven to be useful, they are moved into core gtk/gnome >libraries) > >If you do want to add support for this part of libegg yourself, the only >documentation that is available is the java-gnome source code itself. >you would have to create a new java-gnome module containing jni and java >code. This would require quite detailed knowledge of java, jni and of >course the libegg api. If you have this, then we would be glad to help >out with any problems you encounter (although java-gnome developers are >currently very busy adding support for gnome 2.5, so we might be a >little slow in responding at the moment) > > > > |