forked from joejulian/gio
io/semantic: [API] replace DisabledOp with EnabledOp
The double-negative DisabledOp is harder to understand than a straightforward EnabledOp. Note that the absence of an EnabledOp implies still means that the widget is enabled. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-3
@@ -84,7 +84,7 @@ const (
|
||||
TypeSemanticDesc
|
||||
TypeSemanticClass
|
||||
TypeSemanticSelected
|
||||
TypeSemanticDisabled
|
||||
TypeSemanticEnabled
|
||||
TypeSnippet
|
||||
TypeSelection
|
||||
TypeActionInput
|
||||
@@ -170,7 +170,7 @@ const (
|
||||
TypeSemanticDescLen = 1
|
||||
TypeSemanticClassLen = 2
|
||||
TypeSemanticSelectedLen = 2
|
||||
TypeSemanticDisabledLen = 2
|
||||
TypeSemanticEnabledLen = 2
|
||||
TypeSnippetLen = 1 + 4 + 4
|
||||
TypeSelectionLen = 1 + 2*4 + 2*4 + 4 + 4
|
||||
TypeActionInputLen = 1 + 1
|
||||
@@ -454,7 +454,7 @@ var opProps = [0x100]opProp{
|
||||
TypeSemanticDesc: {Size: TypeSemanticDescLen, NumRefs: 1},
|
||||
TypeSemanticClass: {Size: TypeSemanticClassLen, NumRefs: 0},
|
||||
TypeSemanticSelected: {Size: TypeSemanticSelectedLen, NumRefs: 0},
|
||||
TypeSemanticDisabled: {Size: TypeSemanticDisabledLen, NumRefs: 0},
|
||||
TypeSemanticEnabled: {Size: TypeSemanticEnabledLen, NumRefs: 0},
|
||||
TypeSnippet: {Size: TypeSnippetLen, NumRefs: 2},
|
||||
TypeSelection: {Size: TypeSelectionLen, NumRefs: 1},
|
||||
TypeActionInput: {Size: TypeActionInputLen, NumRefs: 0},
|
||||
|
||||
Reference in New Issue
Block a user