Re: [Java-gnome-developer] disabling icons for stock buttons
Brought to you by:
afcowie
From: Lars W. <la...@di...> - 2005-12-25 15:38:46
|
Hi, > > While I'd like to make use of stock buttons because of translations, > > etc. I think I'd prefer to display buttons with text only. > > Assuming by "stock buttons" you mean those composed by either Button() > or LibGlade, the only thing I can think of that would avoid the icons > would be to delve into the button itself (buttons as generated by Glade > are composite widgets, look at the .glade file for hints of what to cast > to when descending the object graph), grab the label that GTK composed, > use that in the construction of a new Button, de-parent the old one, and > add the new one to whatever Box you were working with. wouldn't it in this case be easier to just get the GTK generated stock icon and hide() it? Anyway, doing it manually wouldn't really be worth the trouble in my opinion so I guess we'll go with using icons on buttons for now. In general I agree with tigert however that all those icons do more harm than good, so I would have liked to try doing without and perhaps providing an example of how this would lead to a more intuitive interface :) (Since our aim is to be cross-platform, the problem of UI-coherence only partially applies to us anyway.) But whatever... Regards, Lars |