GNOME Bugzilla – Bug 599218
Deprecate gtk_button_pressed, _released, _enter, _leave
Last modified: 2009-10-27 21:44:43 UTC
The signals "pressed", "released", "enter" and "leave" on GtkButton are deprecated because GtkWidget has all the functionality. However the according functions gtk_button_pressed, _released, _enter, _leave seem to have been forgotten.
Created attachment 145964 [details] [review] Deprecate the old button functions
Created attachment 145965 [details] [review] Deprecate the old button functions, incl. tmpl update Updated patch, I accidentally left out the template file update.
Comment on attachment 145965 [details] [review] Deprecate the old button functions, incl. tmpl update Looks good to me, but you should remove the internal uses of these functions at the same time.
Only a question: Make sense to deprecated _clicked and add a new signal to GtkWidget ?
No it doesn't. GtkButtons are defined as things that the user can click, and it is entirely appropriate that they have a "clicked" signal when that happens. AfC
Pushed to master. I changed Gail, the old clist and combo to use g_signal_emit_by_name for now. We'll probably need to re-think what exactly Gail is doing there in the 2.90 branch.