Re: GtkEditable::activate bug or feature?



On 27 Jun 2000, Havoc Pennington wrote:

> 
> Hi,
> 
> It's not a bug, in general objects should never change their behavior
> based on whether there are signal handlers or not (and indeed the
> signal system provides no way of finding out that information AFAIK).

though you're absolutely correct regarding object behaviour, there is a way
to find out whether handlers are pending for a signal, we added some
time ago to spare GtkXmHTML some expensive rerendering if there wasn't
a handler pending:

guint  gtk_signal_handler_pending         (GtkObject           *object,
                                           guint                signal_id,
                                           gboolean             may_be_blocked);

> 
> Havoc
> 

---
ciaoTJ





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]