summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/tile/tnotebook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/tile/tnotebook.rb')
-rw-r--r--ext/tk/lib/tkextlib/tile/tnotebook.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tnotebook.rb b/ext/tk/lib/tkextlib/tile/tnotebook.rb
index 47338a9f9d..540ee78390 100644
--- a/ext/tk/lib/tkextlib/tile/tnotebook.rb
+++ b/ext/tk/lib/tkextlib/tile/tnotebook.rb
@@ -53,8 +53,12 @@ class Tk::Tile::TNotebook < TkWindow
WidgetClassName = 'TNotebook'.freeze
WidgetClassNames[WidgetClassName] = self
+ def self.style(*args)
+ [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
+ end
+
def enable_traversal()
- tk_call_without_end('tile::enableNotebookTraversal', @path)
+ tk_call_without_enc('::tile::notebook::enableTraversal', @path)
self
end