Re: GtkEditable::activate bug or feature?



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).

All you have to do is connect activate to gtk_window_activate_default,
like this:

  gtk_signal_connect_object(GTK_OBJECT(editable), "activate",
                            GTK_SIGNAL_FUNC(gtk_window_activate_default), 
                            GTK_OBJECT(dialog));

90% of the time you have a single entry in a dialog, that's the right
thing to do.

Havoc




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