lib/glimmer/tk/notebook_proxy.rb in glimmer-dsl-tk-0.0.22 vs lib/glimmer/tk/notebook_proxy.rb in glimmer-dsl-tk-0.0.23
- old
+ new
@@ -25,20 +25,15 @@
module Tk
# Proxy for Tk::Tile::Notebook
#
# Follows the Proxy Design Pattern
class NotebookProxy < WidgetProxy
- TAB_OPTIONS = ['state', 'sticky', 'padding', 'text', 'image', 'compound', 'underline']
+ TAB_OPTIONS = ['state', 'sticky', 'padding', 'text', 'title', 'image', 'compound', 'underline']
- attr_reader :tab_proxies
+ alias tab_proxies children
- def initialize(*args)
- @tab_proxies = []
- super
- end
-
def post_initialize_child(child)
- @tab_proxies << child
+ super
@tk.add child.tk, child.tab_options
end
end
end
end