diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-15 19:35:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-15 19:35:49 -0400 |
| commit | 0359d3bf4a05e6456af34d365a2a644b49afd6af (patch) | |
| tree | 34de559d2fec7d4b1201cc897a0e79501a3abbf4 | |
| parent | d824e549f19059e5801beb1fa30605ce93e3e15c (diff) | |
Added Label.isStandalone(), used by Grid. Now for the Grid test...
| -rw-r--r-- | redo/basicctrls.go | 2 | ||||
| -rw-r--r-- | redo/label_darwin.go | 4 | ||||
| -rw-r--r-- | redo/label_unix.go | 4 | ||||
| -rw-r--r-- | redo/label_windows.go | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/redo/basicctrls.go b/redo/basicctrls.go index 3eb7d66..94f5c8d 100644 --- a/redo/basicctrls.go +++ b/redo/basicctrls.go @@ -87,6 +87,8 @@ type Label interface { // Text and SetText get and set the Label's text. Text() string SetText(text string) + + isStandalone() bool } // NewLabel creates a new Label with the given text. diff --git a/redo/label_darwin.go b/redo/label_darwin.go index 73f6d28..fab59d9 100644 --- a/redo/label_darwin.go +++ b/redo/label_darwin.go @@ -41,6 +41,10 @@ func (l *label) SetText(text string) { C.textFieldSetText(l._id, ctext) } +func (l *label) isStandalone() bool { + return l.standalone +} + func (l *label) id() C.id { return l._id } diff --git a/redo/label_unix.go b/redo/label_unix.go index 0790539..45a3dad 100644 --- a/redo/label_unix.go +++ b/redo/label_unix.go @@ -54,6 +54,10 @@ func (l *label) SetText(text string) { C.gtk_label_set_text(l.label, ctext) } +func (l *label) isStandalone() bool { + return l.standalone +} + func (l *label) widget() *C.GtkWidget { return l._widget } diff --git a/redo/label_windows.go b/redo/label_windows.go index 7dc8723..96daa67 100644 --- a/redo/label_windows.go +++ b/redo/label_windows.go @@ -44,6 +44,10 @@ func (l *label) SetText(text string) { baseSetText(l, text) } +func (l *label) isStandalone() bool { + return l.standalone +} + func (l *label) hwnd() C.HWND { return l._hwnd } |
