Changeset 11470

Show
Ignore:
Timestamp:
05/13/08 00:06:02 (5 years ago)
Author:
topia
Message:

* tooltip の変更に Win32::GUI の正式 API を使うように書き換えた。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/tiarra/trunk/module/System/NotifyIcon/Win32.pm

    r11365 r11470  
    9898    } 
    9999    if (!$can_use_win32api || $this->{notifyicondata_version} <= 1) { 
    100         # This is internal API! 
    101         Win32::GUI::NotifyIcon::Modify($this->{notify_icon}->{-handle}, 
    102                                        -id => $this->{notify_icon}->{-id}, 
    103                                        -tip => $tooltip); 
     100        eval { 
     101            $this->{notify_icon}->Change(-tip => $tooltip); 
     102        }; if ($@) { 
     103            # This is internal API! 
     104            Win32::GUI::NotifyIcon::Modify($this->{notify_icon}->{-handle}, 
     105                                           -id => $this->{notify_icon}->{-id}, 
     106                                           -tip => $tooltip); 
     107        } 
    104108    } else { 
    105109        my ($struct,$ret);