On Sat, 2003-12-13 at 23:42, bulia byak wrote:
But GTK already has the stack of statusbar messages, why duplicate it? I think it's better to make two signals instead, one for push and one for
pop.
I may have talked about using the GTK statusbar stack earlier, but then I looked further into the GTK statusbar API and it's really pretty awkward (IMO). How do you feel about it?
Don't know - OK for me. I use push to display and _remove to remove a message with a specific id (i.e. if it was already replaced by some other message, nothing changes).
To that end, I want to keep the signal (or at least some kind of notification callback) to maintain that interface boundary.
OK, I kept the one signal, but added an argument msec (how long to stay the message, forever if zero).
OK, I promise to never use SP_ACTIVE_DESKTOP anymore :) Instead I will create several functions that accept different kinds of "current things" (such as selection, event context, desktop) and do different
->...->...->
chains to always arrive at the desktop widget that corresponds to that argument object (if possible, without signals). Then in different parts
of
the code I'll have to call different functions, depending on what object
I
have at hand. Would you approve of that plan?
Well, at present SP_ACTIVE_DESKTOP is a necessary evil in a few places -- but I'd certainly appreciate if you could minimize its usage.
I would not call them "a few". For example, all global verbs use it, because I see no other way for them to perfom their action, given they can be called anywhere, e.g. in a dialog.
Adding a method to SPEventContext to set the status message for that event context's desktop would be good too (maybe something printf-like ... e.g. sp_event_context_set_statusf (SPEventContext *context, const gchar *format, ...)?).
Will do that now. All tools will display a helpful default message when sqitched to.
_________________________________________________________________ Don�t worry if your Inbox will max out while you are enjoying the holidays. Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es