GNOME Bugzilla – Bug 68183
unused enum types should be deprecated
Last modified: 2011-02-04 16:09:14 UTC
... now that GtkPatternSpec has mutated into the opaque GPatternSpec. While this is formally an API change, a LXR search doesn't turn up any users of GtkMatchType or GTK_MATCH_*, so the breakage caused by this should be zero.
Why don't we just deprecate it. While I may believe that nobody is using it, being consistent here is easier.
OK, deprecated GtkMatchType now. Here are a few more deprecation candidates from gtkenums.h: GtkAnchorType, GtkSideType (which stem from the nuked GtkPacker) GtkPreviewType (since GtkPreview is deprecated) GtkSignalRunType (since gtk_signal_* is deprecated) GtkSubmenuDirection, GtkSubmenuPlacement (should really be private, used only internally) GtkVisibility (since the only users CList, CTree are deprecated)
GtkAnchorType is used by canvas. I've also left GtkVisibility undeprecated because a cut-and-paste of CList is still used in eel (not that _that_ shouldn't be gotten rid of quickly), and because I think it's fairly harmless. (Well namespaced) The rest I've deprecated: Tue Jan 29 19:51:05 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkenums.h: Deprecate GtkPreviewType, GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection (#68183, Matthias Clasen) * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from the public header to avoid having to use GtkSubmenuPlacement. * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.