GNOME Bugzilla – Bug 598383
GtkWidget::state-changed signal should be documented
Last modified: 2010-01-11 09:32:45 UTC
The state argument of the "state-changed" signal is actually the *old* state. This should be documented as it's not intuitive.
Created attachment 150833 [details] [review] Document that state is the previous state
Why not rename @state to @old_state or @previous_state?
Because argument names are part of the ABI in some programming languages.
Comment on attachment 150833 [details] [review] Document that state is the previous state looks fine, but while you are at it, why not add a body to that doc comment, like "This signal is emitted when the widget state changes. See gtk_widget_get_state()."
Pushed to master.