"changed" and GtkEntry set_text



It appears that a slight change in semantics happened from GTK+ 1.2 to
2.x with respect to the "changed" signal. It's caused a small regression
in Kiwi while porting it, and I am trying to figure out if it's
intentional (and work around it) or accidental (perhaps related to a
change in http://bugzilla.gnome.org/show_bug.cgi?id=53130 or another I
couldn't find):

    When gtk_entry_set_text() is called twice with the same string, only
    one "changed" event is fired. 
    
In 1.2 two "changed" events were emitted. Owen has said that

    In general, "changed" signals should be thought of as 
    "something might have changed" rather than as "something
    changed".

However I'm unsure how to interpret that in this specific case. Should I
rely on this staying this way, or was it an `accidental' change?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331



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