After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 532956 - GtkSensitivityType and GtkPolicyType are almost equal
GtkSensitivityType and GtkPolicyType are almost equal
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 347771
 
 
Reported: 2008-05-13 13:45 UTC by Sven Herzberg
Modified: 2010-07-10 03:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sven Herzberg 2008-05-13 13:45:11 UTC
These two types can easily be merged into an "OFF, ON, AUTO" enumeration.
Comment 1 Owen Taylor 2008-05-13 15:17:12 UTC
Just because two enums have the same values, doesn't mean they
should be merged.
Comment 2 Michael Natterer 2008-06-13 12:13:47 UTC
But in this case an API of

gtk_range_set_*_stepper_sensitivity (GtkRange      *range,
                                     GtkPolicyType  sensitivity_type);

would make sense because

typedef enum
{
  GTK_POLICY_ALWAYS,
  GTK_POLICY_AUTOMATIC,
  GTK_POLICY_NEVER
} GtkPolicyType;

completely makes sense as "sensitivity policy".