diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-15 14:27:18 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-15 14:27:18 -0400 |
| commit | e429b8d6b82f6caf9301e9917e96d7f823dd90bd (patch) | |
| tree | 6322c374460fe1b24debcd9ac61197de8141f0b6 /sysdata_unix.go | |
| parent | 05905e3addd522b7c7d41a4ac6cfefbef52ab546 (diff) | |
Allowed GTK+ windows to be resized smaller than the size request of the controls within.
Diffstat (limited to 'sysdata_unix.go')
| -rw-r--r-- | sysdata_unix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go index 8d753da..e9c507a 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -117,7 +117,7 @@ func (s *sysData) make(initText string, window *sysData) error { s.widget = <-ret if window == nil { uitask <- func() { - fixed := gtk_fixed_new() + fixed := gtkNewWindowLayout() gtk_container_add(s.widget, fixed) // TODO return the container before assigning the signals? for signame, sigfunc := range ct.signals { @@ -129,7 +129,7 @@ func (s *sysData) make(initText string, window *sysData) error { } else { s.container = window.container uitask <- func() { - gtk_container_add(s.container, s.widget) + gtkAddWidgetToLayout(s.container, s.widget) for signame, sigfunc := range ct.signals { g_signal_connect(s.widget, signame, sigfunc, s) } @@ -187,7 +187,7 @@ func (s *sysData) setText(text string) { } func (s *sysData) setRect(x int, y int, width int, height int, winheight int) error { - gtk_fixed_move(s.container, s.widget, x, y) + gtkMoveWidgetInLayout(s.container, s.widget, x, y) gtk_widget_set_size_request(s.widget, width, height) return nil } |
