[java-gnome-hackers] App.setStatusBar
Brought to you by:
afcowie
From: Philip A. C. <pc...@td...> - 2002-08-28 03:50:09
|
Everyone, This is more of a "How does this work in gnome" issue than anything else, but here goes: While working to get TestGNOME.java working, I came across this issue.=20 In TestGNOME, an org.gnu.gtk.AppBar is created. An attempt is made to assign it to org.gnu.gnome.App.setStatusBar(org.gnu.gnome.StatusBar).=20 Right now, StatusBar does not extend AppBar. In gnome-app.h, gnome_app_set_statusbar takes a pointer to GtkWidget. Could a developer pass *any* widget to this function? My first inclination is to overload setStatusBar with setStatusBar(org.gnu.gtk.AppBar) as well as setStatusBar(org.gnu.gnome.StatusBar). Alternatively, I could change to setStatusBar(org.gnu.gtk.Widget), or change StatusBar so that it extends AppBar. I'm a fan of strong typing and would rather not change the method. Extending AppBar may be an issue, since gnome's status bar doesn't extend from gtk's app bar. I've tried using http://developer.gnome.org/doc/API/libgnomeui/gnomeapp.html for insight, into how the gnome_app_set_statusbar function should be used.=20 Unfortunately, I could find nothing there to help me with this. Is there a better place to look? If the only answer is to view the gnome source I will go there, but I'd rather not. Thanks, --=20 Philip A. Chapman |