Re: Text buffer API



Darin Adler <darin@eazel.com> writes: 
> For undo, we have a need to distinguish changes to text that happen as a
> result of a user action from those that are done by the code. In GtkEntry we
> found no signal (other than the widget key down signals) emitted as part of
> typing that was not also emitted as a result of calling
> gtk_entry_insert_text or gtk_entry_delete_text. As a workaround, we started
> on a subclass (poorly implemented -- just good enough for our purposes now)
> called NautilusEntry with an additional signal, "user_changed", that we
> intend to be emitted only when the change was actually done by the user.
> 

We already have "interactive" versions of insert_text and
delete_text. Would it be sufficient to make a boolean arg to the
virtual function indicating interactivity?

Havoc





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