Re: [java-gnome-hackers] App.setStatusBar
Brought to you by:
afcowie
From: Sergio R. <ser...@hi...> - 2002-08-28 15:21:12
|
Hi, I think that if the gnome statusbar represents the same as the gtk appbar, the gnome guys should have extended the gtk appbar, since gnomeui is built on top of gtk. Anyway, IMHO working with gnome stuff, seems to be redundant using two types of statusbar in an application. In case that gnome statusbar extends from gtk appbar I think that the approach of writting a method that supports the gtk appbar should be the correct one. I had never worked with gnome or gtk before, so sure I'm not helping you too much. Sorry. On Wed, 2002-08-28 at 05:48, Philip A. Chapman wrote: > 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. > 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). > 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. > 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, > -- > Philip A. Chapman |