Diff for /chimera/BookmarksButton.mm between versions 1.8 and 1.9

version 1.8, 2002/04/20 00:44:56 version 1.9, 2002/04/20 01:18:54
Line 57 Line 57
   
 -(IBAction)openBookmark:(id)aSender  -(IBAction)openBookmark:(id)aSender
 {  {
  printf("Yo?\n");  // See if we're a group.
   nsAutoString group;
   mElement->GetAttribute(NS_LITERAL_STRING("group"), group);
   if (!group.IsEmpty()) {
     BookmarksService::OpenBookmarkGroup([[[self window] windowController] getTabBrowser], mElement);
     return;
   }
       
   // Get the href attribute.  This is the URL we want to load.    // Get the href attribute.  This is the URL we want to load.
   nsAutoString href;    nsAutoString href;
Line 101 Line 107
   mElement = aElt;    mElement = aElt;
   nsAutoString tag;    nsAutoString tag;
   mElement->GetLocalName(tag);    mElement->GetLocalName(tag);
  if (tag.Equals(NS_LITERAL_STRING("folder"))) {
   nsAutoString group;
   mElement->GetAttribute(NS_LITERAL_STRING("group"), group);
 
   if (!group.IsEmpty()) {
     mIsFolder = NO;
     [self setImage: [NSImage imageNamed: @"smallbookmark"]];
     [self setAction: @selector(openBookmark:)];
     [self setTarget: self];
   }
   else if (tag.Equals(NS_LITERAL_STRING("folder"))) {
     [self setImage: [NSImage imageNamed: @"folder"]];      [self setImage: [NSImage imageNamed: @"folder"]];
     mIsFolder = YES;      mIsFolder = YES;
   }    }

Removed from v.1.8  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>