widget: Finish deprecation

Remove duplicate declarations, and add G_GNUC_DEPRECATED attributes.