Permalink
Browse files

hide placement notifications

  • Loading branch information...
skelterjohn committed Apr 23, 2012
1 parent ddeb82e commit a7ba5e22cb511d896072521b080885b01522d0fb
Showing with 7 additions and 7 deletions.
  1. +3 −3 block.go
  2. +2 −2 channels.go
  3. +1 −1 events.go
  4. +1 −1 foundation.go
View
@@ -29,7 +29,7 @@ type Block struct {
SizeHints SizeHintChan
setSizeHint SizeHintChan
- PlacementNotifications PlacementNotificationChan
+ placementNotifications placementNotificationChan
HasKeyFocus bool
@@ -44,7 +44,7 @@ func (b *Block) Initialize() {
b.Redraw = make(RedrawEventChan, 1)
- b.PlacementNotifications = make(PlacementNotificationChan, 1)
+ b.placementNotifications = make(placementNotificationChan, 1)
b.setSizeHint = make(SizeHintChan, 1)
go b.handleSizeHints()
@@ -70,7 +70,7 @@ func (b *Block) handleSizeHints() {
for {
select {
case sh = <-b.setSizeHint:
- case pn := <-b.PlacementNotifications:
+ case pn := <-b.placementNotifications:
b.Parent = pn.Foundation
b.SizeHints = pn.SizeHints
}
View
@@ -128,9 +128,9 @@ func (ch RedrawEventChan) Stack(e RedrawEvent) {
}
}
-type PlacementNotificationChan chan PlacementNotification
+type placementNotificationChan chan placementNotification
-func (ch PlacementNotificationChan) Stack(e PlacementNotification) {
+func (ch placementNotificationChan) Stack(e placementNotification) {
if ch == nil {
return
}
View
@@ -66,7 +66,7 @@ type SizeHint struct {
MinSize, PreferredSize, MaxSize geom.Coord
}
-type PlacementNotification struct {
+type placementNotification struct {
Foundation *Foundation
SizeHints SizeHintChan
}
View
@@ -95,7 +95,7 @@ func (f *Foundation) AddBlock(b *Block) {
}
}(b, sizeHints)
- b.PlacementNotifications.Stack(PlacementNotification{
+ b.placementNotifications.Stack(placementNotification{
Foundation: f,
SizeHints: sizeHints,
})

0 comments on commit a7ba5e2

Please sign in to comment.