From ee0460d5a1752fd14dde13a8c275763ab3474492 Mon Sep 17 00:00:00 2001 From: ocean Date: Fri, 8 Apr 2005 12:44:19 +0000 Subject: [PATCH] * ext/tk/sample/tkextlib/treectrl/outlook-newgrounp.rb: image had disappered when node was selected. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/ChangeLog.tkextlib | 17 +++++++++-------- .../tkextlib/treectrl/outlook-newgroup.rb | 6 +++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/ext/tk/ChangeLog.tkextlib b/ext/tk/ChangeLog.tkextlib index 9a84fcf851..b6aaa75bd6 100644 --- a/ext/tk/ChangeLog.tkextlib +++ b/ext/tk/ChangeLog.tkextlib @@ -1,17 +1,18 @@ 2005-04-08 ocean - * sample/tkextlib/treectrl/outlook-newgroup.rb: tk::treectrl uses 'afterId' - not 'afterID'. + * sample/tkextlib/treectrl/outlook-newgrounp.rb: image had disappered when + node was selected. - * sample/tkextlib/treectrl/random.rb: ditto. +2005-04-08 ocean - * sample/tkextlib/treectrl/outlook-newgroup.rb: item_firstchild can - return empty string. (drag onto leaf node) + * sample/tkextlib/treectrl/{random,outlook-newgroup}.rb: + tk::treectrl uses 'afterId' not 'afterID'. - * sample/tkextlib/treectrl/random.rb: ditto. + * sample/tkextlib/treectrl/{random,outlook-newgroup}.rb: + item_firstchild can return empty string. (drop node to leaf node) - * sample/tkextlib/treectrl/random.rb: comparation failed at Enumerable#find - because of type mismatch. (ex: "10" != 10) + * sample/tkextlib/treectrl/random.rb: Enumerable#find didn't work properly + because tried to compare String with Integer. (drag node and leave widget) * sample/tkextlib/treectrl/random.rb: and some fixes. diff --git a/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb b/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb index 6aec944ae9..d7e7f7e004 100644 --- a/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb +++ b/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb @@ -39,12 +39,12 @@ def demoOutlookNewsgroup(t) t.element_create('elemImg', :image, :image=>[ - @images['outlook-read-2Sel'], + @sel_images['outlook-read-2'], ['selected', 'read', 'unread', '!open'], @images['outlook-read-2'], ['read', 'unread', '!open'], - @images['outlook-readSel'], ['selected', 'read'], + @sel_images['outlook-read'], ['selected', 'read'], @images['outlook-read'], ['read'], - @images['outlook-unreadSel'], ['selected'], + @sel_images['outlook-unread'], ['selected'], @images['outlook-unread'], [] ]) t.element_create('elemTxt', :text, :lines=>1,