aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb')
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb19
1 files changed, 17 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb b/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb
index 5321331551..0d9715f87b 100644
--- a/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb
@@ -23,15 +23,20 @@ class Tk::Iwidgets::Tabnotebook
include TkItemConfigMethod
def __item_cget_cmd(id)
- [self.path, 'tabcget', id]
+ [self.path, 'pagecget', id]
end
private :__item_cget_cmd
def __item_config_cmd(id)
- [self.path, 'tabconfigure', id]
+ [self.path, 'pageconfigure', id]
end
private :__item_config_cmd
+ def __item_strval_optkeys(id)
+ super(id) << 'tabbackground' << 'tabforeground'
+ end
+ private :__item_strval_optkeys
+
def tagid(tagOrId)
if tagOrId.kind_of?(Tk::Itk::Component)
tagOrId.name
@@ -51,6 +56,16 @@ class Tk::Iwidgets::Tabnotebook
####################################
+ def __boolval_optkeys
+ super() << 'auto' << 'equaltabs' << 'raiseselect' << 'tabborders'
+ end
+ private :__boolval_optkeys
+
+ def __strval_optkeys
+ super() << 'backdrop' << 'tabbackground' << 'tabforeground'
+ end
+ private :__strval_optkeys
+
def initialize(*args)
super(*args)
@tabset = self.component_widget('tabset')