소스 검색

Fix: SetGroup return value consistency

amyadzuki 7 년 전
부모
커밋
685591bb59
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      gui/checkradio.go

+ 2 - 1
gui/checkradio.go

@@ -123,9 +123,10 @@ func (cb *CheckRadio) Group() string {
 }
 }
 
 
 // SetGroup sets the name of the radio group
 // SetGroup sets the name of the radio group
-func (cb *CheckRadio) SetGroup(group string) {
+func (cb *CheckRadio) SetGroup(group string) *CheckRadio {
 
 
 	cb.group = group
 	cb.group = group
+	return cb
 }
 }
 
 
 // SetStyles set the button styles overriding the default style
 // SetStyles set the button styles overriding the default style