|
java-gnome version 4.0.13 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.gnome.glib.Glib
public class Glib
Static methods to initialize the Java bindings around GLib
Method Summary | |
---|---|
static void |
setProgramName(String name)
Change the internal program name used by GLib and GTK for internal error messages. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setProgramName(String name)
(gnome-panel:5581): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to...where "
gnome-panel
" was the name set by that program with
this method call, and 5581
was the process id originating
the message. As you can see, the whole thing is pretty ugly (not to
mention having no context), which is why one of the design goals of
java-gnome is to fully proxy the entire underlying library and have
none of the internals from GLib or GTK be exposed to the Java
developer. If we do our job right, your users should never see a
message like that; at worst it would be reported as a Java stack
trace.
You don't really need to call this, but it's here if you want to make
it clearer in the .xsession-errors
log what the culprit
application is. The default name is "java", which is fine until you
deploy for production use.
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |