/[hegemonie]/hegemonie/Interface/UiButton.m
ViewVC logotype

Diff of /hegemonie/Interface/UiButton.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by zaral, Thu May 22 08:47:28 2003 UTC revision 1.2 by zaral, Wed Jun 4 16:57:46 2003 UTC
# Line 39  Line 39 
39   * @param (NSPoint)position the position of the button   * @param (NSPoint)position the position of the button
40   */   */
41  - (id) initWithText: (NSString *)text  - (id) initWithText: (NSString *)text
42             position: (NSPoint)position             position: (NSPoint)position
43  {  {
44    NSParameterAssert (text);    NSParameterAssert (text);
45    NSParameterAssert ([text length] != 0);    NSParameterAssert ([text length] != 0);
# Line 49  Line 49 
49    if (self != nil)    if (self != nil)
50      {      {
51        UiLabel *label = [[UiLabel alloc] initWithText: text        UiLabel *label = [[UiLabel alloc] initWithText: text
52                                              position: NSZeroPoint];                                                position: position];
53    
54        [super addWidget: label];        [super addWidget: label];
55    
# Line 68  Line 68 
68  - (id) initWithImageName: (NSString *)imageName  - (id) initWithImageName: (NSString *)imageName
69                  position: (NSPoint)position                  position: (NSPoint)position
70  {  {
   NSSize size;  
     
71    NSParameterAssert (imageName);    NSParameterAssert (imageName);
72    NSParameterAssert ([imageName length] != 0);    NSParameterAssert ([imageName length] != 0);
73    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26