diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/common/content/tree.js
--- a/mozilla/browser/components/flock/common/content/tree.js	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/common/content/tree.js	Thu Jan 12 18:09:08 2006 +0100
@@ -44,9 +44,6 @@
         // Send to a handler
         if (obj.value == "twisty") {
             this.performAction("onTwisty", row.value, col.value);
-        }
-        else if ((col.value.cycler || col.type == "checkbox")) {
-            this.mNode.view.cycleCell(row.value, col.value);
         }
         else {
             var mods = this.split(aEvent);
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/common/jar.mn
--- a/mozilla/browser/components/flock/common/jar.mn	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/common/jar.mn	Thu Jan 12 18:09:08 2006 +0100
@@ -26,6 +26,7 @@
     skin/classic/browser/flock/common/blue.png                 (skin/classic/blue.png)
     skin/classic/browser/flock/common/slideyhandle.png         (skin/classic/slideyhandle.png)
     skin/classic/browser/flock/common/slideyBG.png             (skin/classic/slideyBG.png)
+    skin/classic/browser/flock/common/plus.png                 (skin/classic/plus.png)
     skin/classic/browser/flock/common/close_active.png         (skin/classic/close_active.png)
     skin/classic/browser/flock/common/close_inactive.png       (skin/classic/close_inactive.png)
     skin/classic/browser/flock/common/close_hover.png          (skin/classic/close_hover.png)
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/content/favorites.js
--- a/mozilla/browser/components/flock/favorites/content/favorites.js	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/favorites/content/favorites.js	Thu Jan 12 18:09:08 2006 +0100
@@ -204,6 +204,27 @@
     }
     flock.browser.openFeeds(feedList, aWhere);
 };/*}}}*/
+flock.favorites.refreshFeedsForCollection = function (aCollection) {/*{{{*/
+    flock.require('flock.feed.feed');
+    var collection = flock.favorites.getCollection(aCollection);
+    var feedList = [];
+    for (var i = 0; i < collection.items.length; ++i) {
+        var item = collection.items[i];
+        XXX('FOR EACH ITEM', item);
+        if (flock.favorites.isFeed(item)) {
+            XXX('ITS A FEED');
+            feedList.push(item.url);
+        }
+        else if (item.hasFeeds) {
+            XXX('IT HAS FEEDS');
+            for (var j = 0; j < item.feeds.length; ++j) {
+                XXX('FOREACH FEED');
+                feedList.push(item.feeds[j].url);
+            }
+        }
+    }
+    flock.feed.refreshFeeds(feedList);
+};/*}}}*/
 flock.favorites.viewFeeds = function (aItemList, aWhere) {/*{{{*/
     var feedList = [];
     for (var i = 0; i < aItemList.length; ++i) {
@@ -226,6 +247,26 @@
         }
     }
     flock.browser.openFeeds(feedList, aWhere);
+
+};/*}}}*/
+flock.favorites.refreshFeeds = function (aItemList) {/*{{{*/
+    var feedList = [];
+    for (var i = 0; i < aItemList.length; ++i) {
+        var item = aItemList[i];
+        if (flock.favorites.isFeed(item)) {
+            item = flock.favorites.getFeed(item);
+            feedList.push(item.url);
+        }
+        else {
+            item = flock.favorites.getFavorite(item);
+            if (item.hasFeeds) {
+                for (var j = 0; j < item.feeds.length; ++j) {
+                    feedList.push(item.feeds[j].url);
+                }
+            }
+        }
+    }
+    flock.feed.refreshFeeds(feedList);
 
 };/*}}}*/
 flock.favorites.openCollectionInTabs = function (aCollection) {/*{{{*/
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/content/favoritesManager.js
--- a/mozilla/browser/components/flock/favorites/content/favoritesManager.js	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/favorites/content/favoritesManager.js	Thu Jan 12 18:09:08 2006 +0100
@@ -182,6 +182,13 @@
             exec: function () {
                 var selected = this.mNode.selectedItem;
                 flock.favorites.viewFeedsForCollection(selected.id, 'window');
+            }
+        },/*}}}*/
+        cmd_collectionRefreshFeeds: {/*{{{*/
+            isEnabled: collectionHasFeeds,
+            exec: function () {
+                var selected = this.mNode.selectedItem;
+                flock.favorites.refreshFeedsForCollection(selected.id);
             }
         },/*}}}*/
     });
@@ -302,25 +309,6 @@
                 }
             }
         },/*}}}*/ 
-        cmd_toggleShared: function() {/*{{{*/
-            // XXX ---- all of the following should be done in the service --- as some may or may not support
-            // things like "private" ... as well as their "service" might be to not have a online service at all
-            var selected = flock_getTreeSelection(tree, ['URL', 'Name']);
-            var allFavProps = flock.favorites.getFavorite( selected[0].URL );
-            allFavProps.load();
-            var favPropsForEdit = {name:allFavProps.name, url:allFavProps.url, feed:allFavProps.feed }
-
-            // Order is local -> private -> public 
-            if (allFavProps.local) {
-                flock.favorites.editItem( favPropsForEdit, {local: false, private: true});
-            } else {
-                if (allFavProps.private) {
-                    flock.favorites.editItem( favPropsForEdit, {local: false, private: false});
-                } else {
-                    flock.favorites.editItem( favPropsForEdit, {local: true, private: false});
-                }
-            }
-            },/*}}}*/
         cmd_favoriteRename: function () { /*{{{*/
             var selected = flock_getTreeSelection(tree, ['URL', 'Name']);
             flock.favorites.renameItem({
@@ -382,6 +370,16 @@
                     return aVal.URL;
                 });
                 flock.favorites.viewFeeds(feeds, 'window');
+            }
+        },/*}}}*/
+        cmd_favoriteRefreshFeeds: {/*{{{*/
+            isEnabled: feedsSelected,
+            exec: function () {
+                var selected = flock_getTreeSelection(tree, ['URL']);
+                var feeds = selected.map(function (aVal) {
+                    return aVal.URL;
+                });
+                flock.favorites.refreshFeeds(feeds);
             }
         },/*}}}*/
     });
@@ -649,14 +647,6 @@
                 case "onDblMetaClick":
                     goDoCommand('cmd_favoriteOpenInTab');
                     break;
-				case "onClick":
-					switch (aCol) {
-						case 'sharing':
-							goDoCommand('cmd_toggleShared');
-							break;
-
-					}
-                    break;
             }
         },/*}}}*/
         onCycleCell: function (aRow, aCol) {/*{{{*/
@@ -671,13 +661,16 @@
             var fav = flock.favorites.getFavorite(rsrc);
             fav.load();
             if (fav.local) {
+                XXX('IS LOCAL, SETTING TO PUBLIC');
                 flock.favorites.editItem(fav, {local: false});
             }
             else {
                 if (!fav.private && flock.favorites.supportsField('private')) {
+                    XXX('IS PUBLIC AND PRIVATE SUPPORTED, SETTING TO PRIVATE');
                     flock.favorites.editItem(fav, {private: true});
                 }
                 else if (fav.private || !flock.favorites.supportsField('private')) {
+                    XXX('IS PRIVATE OR PRIVACY IS NOT SUPPORTED, SETTING TO LOCAL');
                     flock.favorites.editItem(fav, {private: false, local: true});
                 }
             }
@@ -713,7 +706,6 @@
             mOuter: this,
             mInput: searchbox,
             mTree: tree,
-            mClearButton: $('favoritesManagerClearSearch'),
             mTreeTemplate: $('favoriteViewTemplate'),
             _searchResults: null,
             get searchResults() {/*{{{*/
@@ -728,10 +720,8 @@
                     // we are clearing the tree
                     this.unfilterTree();
                     this._searchResults = null;
-                    flock.xul.hide(this.mClearButton);
                 }
                 else {
-                    flock.xul.show(this.mClearButton);
                     this._searchResults = aDataSource;
                     flock.rdf.addDataSources(this.mTree,
                                              [this._searchResults]);
@@ -739,28 +729,44 @@
                     dump_rdf(this._searchResults);
                 }
                 this.mTree.builder.rebuild();
-            },
-            filterTree: function () {
-                // turn on the template rule to only show search
-                // results
-                for (var i = 0; i < this.mTreeTemplate.childNodes.length; ++i) {
-                    var child = this.mTreeTemplate.childNodes[i];
-                    if (child.tagName == "rule") {
-                        child.setAttributeNS('http://flock.com/rdf#',
-                                             'searchresult',
-                                             'true');
-                    }
-                }
-            },
-            unfilterTree: function () {
-                for (var i = 0; i < this.mTreeTemplate.childNodes.length; ++i) {
-                    var child = this.mTreeTemplate.childNodes[i];
-                    if (child.tagName == "rule") {
-                        child.removeAttributeNS('http://flock.com/rdf#',
-                                               'searchresult');
-                    }
-                }
-                
+            },/*}}}*/
+            filterTree: function () {/*{{{*/
+                // find all the conditions we need to add a rule to
+                var searchConditions = document.getElementsByAttribute('favoritesSearch', 'conditions');
+                for (var i = 0; i < searchConditions.length; i++) {
+                    var conditions = searchConditions[i];
+                    // XXX andy: i don't think we actually need to remove old filters,
+                    //           they'll get removed eventually via unfilterTree anyway
+                    //           and i don't think they pose a more serious performance
+                    //           threat than recursing over the items every time like
+                    //           this could is doing.
+                    //// find old search rules to remove
+                    //for (var j = 0; j < conditions.childNodes.length; j++) {
+                    //    var child = conditions.childNodes[j];
+                    //    if (child.getAttribute ('predicate') == 
+                    //            'http://flock.com/rdf#searchresult') {
+                    //        // this is one we want to remove
+                    //        conditions.removeChild (child);
+                    //   }
+                    //}
+                    // create a rule to match only search results
+                    var triple = flock.xul.createElement('triple', {
+                        subject: "?uri",
+                        predicate: "http://flock.com/rdf#searchresult",
+                        object: "true",
+                        favoritesSearch: "filter"   
+                        
+                    });
+
+                    // and add it to the condition
+                    conditions.appendChild(triple);
+                }
+            },/*}}}*/
+            unfilterTree: function () {/*{{{*/
+                // find all the filters we need to remove
+                var searchFilters = document.getElementsByAttribute('favoritesSearch', 'filter');
+                searchFilters = flock.lang.toArray(searchFilters);
+                searchFilters.forEach(dojo.dom.removeNode);
             },/*}}}*/
             onEnter: function () {/*{{{*/
                 this.mInput.clearInputTimer();
@@ -779,6 +785,11 @@
             },/*}}}*/
             search: function () {/*{{{*/
                 XXX('SEARCHIPOO');
+				if (this.mInput.value == '') {
+                    this.unfilterTree();
+                    this.searchResults = null;
+					return;
+				}
                 var _this = this;
                 var callback = new flock.search.SearchCallback({
                     onResult: function (aData) {  
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/content/favoritesManager.xul
--- a/mozilla/browser/components/flock/favorites/content/favoritesManager.xul	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/favorites/content/favoritesManager.xul	Thu Jan 12 18:09:08 2006 +0100
@@ -50,7 +50,6 @@
     <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
     <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
 
-    <!--<script type="application/x-javascript" src="chrome://browser/content/flock/contrib/dojo.js"/> -->
     <script type="application/x-javascript" src="chrome://browser/content/flock/common/flock.js"/>
     <script type="application/x-javascript" src="chrome://browser/content/flock/common/dnd.js"/> 
     <script type="application/x-javascript" src="chrome://browser/content/flock/common/events.js"/> 
@@ -96,6 +95,7 @@
         <command id="cmd_collectionViewFeedsInTab"  oncommand="goDoCommand('cmd_collectionViewFeedsInTab')" /> 
         <command id="cmd_collectionViewFeedsInWindow" 
             oncommand="goDoCommand('cmd_collectionViewFeedsInWindow')" /> 
+        <command id="cmd_collectionRefreshFeeds"    oncommand="flock.command('cmd_collectionRefreshFeeds')" /> 
     </commandset><!--}}}-->
     <!-- Commands: Favorites --><!--{{{-->
     <commandset id="flock_favoriteCommands">
@@ -109,6 +109,7 @@
         <command id="cmd_favoriteViewFeeds"         oncommand="goDoCommand('cmd_favoriteViewFeeds');" />
         <command id="cmd_favoriteViewFeedsInTab"    oncommand="goDoCommand('cmd_favoriteViewFeedsInTab');" />
         <command id="cmd_favoriteViewFeedsInWindow" oncommand="goDoCommand('cmd_favoriteViewFeedsInWindow');" />
+        <command id="cmd_favoriteRefreshFeeds"      oncommand="goDoCommand('cmd_favoriteRefreshFeeds');" />
     </commandset><!--}}}-->
     
     
@@ -123,6 +124,7 @@
         <menuitem label="View Feeds"                command="cmd_collectionViewFeeds" />
         <menuitem label="View Feeds In New Tab"     command="cmd_collectionViewFeedsInTab" />
         <menuitem label="View Feeds in New Window"  command="cmd_collectionViewFeedsInWindow" />
+        <menuitem label="Refresh Feeds"             command="cmd_collectionRefreshFeeds" />
     </menupopup><!--}}}-->
 
     <menupopup id="favoriteContext" />
@@ -139,6 +141,7 @@
             <menuitem label="View Feeds"                command="cmd_favoriteViewFeeds" />
             <menuitem label="View Feeds In New Tab"     command="cmd_favoriteViewFeedsInTab" />
             <menuitem label="View Feeds In New Window"  command="cmd_favoriteViewFeedsInWindow" />
+            <menuitem label="Refresh Feeds"             command="cmd_favoriteRefreshFeeds" />
         </menupopup><!--}}}-->
         <menupopup id="favoriteMultipleItemsSelectedContext"><!--{{{-->
             <menuitem label="Delete All"                command="cmd_favoriteRemove" />
@@ -148,6 +151,7 @@
             <menuitem label="View Feeds"                command="cmd_favoriteViewFeeds" />
             <menuitem label="View Feeds In New Tab"     command="cmd_favoriteViewFeedsInTab" />
             <menuitem label="View Feeds In New Window"  command="cmd_favoriteViewFeedsInWindow" />
+            <menuitem label="Refresh Feeds"             command="cmd_favoriteRefreshFeeds" />
         </menupopup><!--}}}-->
     </popupset>
 
@@ -192,7 +196,7 @@
 							<vbox><spacer flex="1"/><image src="chrome://browser/skin/flock/favorites/collectionIcon16.png" /><spacer flex="1"/></vbox>
                             <vbox><spacer flex="1"/><description value="rdf:http://home.netscape.com/NC-rdf#Name"/><spacer flex="1"/></vbox>
                             <spacer flex="1"/>
-                            <button class="feedsButton"
+                            <toolbarbutton class="feedsButton"
                                 label="feeds"
                                 onmousedown="event.preventBubble();"
                                 onclick="event.preventBubble();"
@@ -201,12 +205,8 @@
                     </rule>
                 </template>
             </slicklistbox>
-            <hbox id="favoritesManagerLeftFooter"
-                class="footer"
-                style="-moz-box-pack: end; -moz-box-align: start;">
-                <button label="+" oncommand="flock.favorites.createCollection()" />
-                <!--<label value="focusWatcher" id="focusWatcher" />-->
-                <!--<slickgrippy attach="collectionListBox" orient="vertical"/>-->
+            <hbox id="favoritesManagerLeftFooter">
+                <toolbarbutton id="flock_addCollection" label="add collection" oncommand="flock.favorites.createCollection()" />
             </hbox>
         </vbox><!--}}}-->
         <!-- Right -->
@@ -225,81 +225,82 @@
                 class='plain'>
                 
                 <template id="favoriteViewTemplate" xmlns:nc="http://home.netscape.com/NC-rdf#">
-					<!-- FAVORITES -->
-                    <rule rdf:type="http://flock.com/rdf#Favorite" iscontainer="false">
-						<conditions>
-							<content uri="?container" />
-							<member container="?container" child="?uri"/>
-							<triple subject="?uri" 
-							        predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" 
-							        object="http://flock.com/rdf#Favorite" />
-						</conditions>
-						<bindings>
-							<binding subject="?uri" predicate="http://flock.com/rdf#local" object="?local"/>
-							<binding subject="?uri" predicate="http://flock.com/rdf#private" object="?private"/>
-							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
-							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
-							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
-							<binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
-							<binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
-							<binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
-							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
-							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
-						</bindings>
-						<action>
-	                        <treechildren>
-	                            <treeitem uri="?uri">
-	                                <treerow properties="favorite">
-	                                    <treecell properties="local-?local private-?private favorite" />
-	                                	<treecell label="?Name" />
-	                                    <treecell label="?URL" />
-	                                    <treecell label="?Description" />
-	                                    <treecell label="?FavoriteAddDate" />
-	                                    <treecell label="?tags" />
-	                                    <treecell label="?LastModifiedDate" />
-	                                    <treecell label="?LastVisitDate"/>
-	                                </treerow>
-	                            </treeitem>
-	                        </treechildren>
-						</action>
-                    </rule>
-					<!-- HISTORY -->
-                    <rule rdf:type="http://flock.com/rdf#Favorite" iscontainer="false">
-						<conditions>
-							<content uri="?container" />
-							<member container="?container" child="?uri"/>
-						</conditions>
-						<bindings>
-							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
-							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
-							<binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
-							<binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
-							<binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
-							<binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
-							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
-							<binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
-						</bindings>
-						<action>
-	                        <treechildren>
-	                            <treeitem uri="?uri">
-	                                <treerow>
-	                                    <treecell properties="history" />
-	                                	<treecell label="?Name" />
-	                                    <treecell label="?URL" />
-	                                    <treecell label="?Description" />
-	                                    <treecell label="?FavoriteAddDate" />
-	                                    <treecell label="?tags" />
-	                                    <treecell label="?LastModifiedDate" />
-	                                    <treecell label="?LastVisitDate"/>
-	                                </treerow>
-	                            </treeitem>
-	                        </treechildren>
-						</action>
-                    </rule>
+                    <!-- FAVORITES -->
+                    <rule><!--{{{-->
+                        <conditions favoritesSearch="conditions">
+                            <content uri="?container" />
+                            <member container="?container" child="?uri"/>
+                            <triple subject="?uri" 
+                                predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" 
+                                object="http://flock.com/rdf#Favorite" />
+                        </conditions>
+                        <bindings>
+                            <binding subject="?uri" predicate="http://flock.com/rdf#local" object="?local"/>
+                            <binding subject="?uri" predicate="http://flock.com/rdf#private" object="?private"/>
+                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
+                            <binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
+                            <binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
+                            <binding subject="?uri" predicate="http://flock.com/rdf#feed" object="?feed" />
+                            <binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
+                        </bindings>
+                        <action>
+                            <treechildren>
+                                <treeitem uri="?uri">
+                                    <treerow properties="favorite feed-?feed">
+                                        <treecell properties="local-?local private-?private favorite feed-?feed" />
+                                        <treecell label="?Name" />
+                                        <treecell label="?URL" />
+                                        <treecell label="?Description" />
+                                        <treecell label="?FavoriteAddDate" />
+                                        <treecell label="?tags" />
+                                        <treecell label="?LastModifiedDate" />
+                                        <treecell label="?LastVisitDate"/>
+                                    </treerow>
+                                </treeitem>
+                            </treechildren>
+                        </action>
+                    </rule><!--}}}-->
+                    <!-- HISTORY -->
+                    <rule><!--{{{-->
+                        <conditions favoritesSearch="conditions">
+                            <content uri="?container" />
+                            <member container="?container" child="?uri"/>
+                        </conditions>
+                        <bindings>
+                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Name" object="?Name" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#URL" object="?URL" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/NC-rdf#Description" object="?Description" />
+                            <binding subject="?uri" predicate="http://flock.com/rdf#FavoriteAddDate" object="?FavoriteAddDate" />
+                            <binding subject="?uri" predicate="http://flock.com/rdf#tags" object="?tags" />
+                            <binding subject="?uri" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?favorite" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastModifiedDate" object="?LastModifiedDate" />
+                            <binding subject="?uri" predicate="http://home.netscape.com/WEB-rdf#LastVisitDate" object="?LastVisitDate" />
+                        </bindings>
+                        <action>
+                            <treechildren>
+                                <treeitem uri="?uri">
+                                    <treerow>
+                                        <treecell properties="history" />
+                                        <treecell label="?Name" />
+                                        <treecell label="?URL" />
+                                        <treecell label="?Description" />
+                                        <treecell label="?FavoriteAddDate" />
+                                        <treecell label="?tags" />
+                                        <treecell label="?LastModifiedDate" />
+                                        <treecell label="?LastVisitDate"/>
+                                    </treerow>
+                                </treeitem>
+                            </treechildren>
+                        </action>
+                    </rule><!--}}}-->
 
                 </template>
                 <treecols id="flock_favoritesTreeCols"><!--{{{-->
-                    <treecol id="sharing"
+                    <treecol id="sharing" cycler="true"
                         persist="hidden ordinal"/>
                     <splitter class="tree-splitter" />
                     <treecol id="Name" label="&flock.favorites.manager.treecol.name;" 
@@ -344,12 +345,11 @@
                     <treecol id="Stuff" sort="" hidden="true"/>
                 </treecols><!--}}}-->
             </tree>
-            <hbox id="favoritesManagerRightFooter" pack="start" align="start"
-                class="footer">
+            <hbox id="favoritesManagerRightFooter" class="footer">
+				<spacer flex="1" />
                 <label value="search" control="favoritesManagerSearchbox"/>
-                <slicktextbox id="favoritesManagerSearchbox" height="15"/>
-                <button id="favoritesManagerClearSearch" label="x" hidden="true"/>
-                <!--<textbox id="favoritesManagerSearchbox" rows="1" multiline="false" />-->
+                <slicktextbox id="favoritesManagerSearchbox" />
+				<spacer flex="1" />
             </hbox>
         </vbox>
     </hbox>
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/content/favoritesOverlay.js
--- a/mozilla/browser/components/flock/favorites/content/favoritesOverlay.js	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/favorites/content/favoritesOverlay.js	Thu Jan 12 18:09:08 2006 +0100
@@ -1,3 +1,5 @@
+// vim: foldmethod=marker
+
 flock.require('flock.common.events');
 flock.require('flock.favorites.favorites');
 
@@ -29,17 +31,17 @@
     var favoritesController = new CommandController({
         // all the commands
         _clickTimers: [],
-        
+        mButton: $('favoritesButton'),
         cmd_favoriteCreateCurrent: function () {/*{{{*/
             var fav = flock.favorites.currentAsFavorite;
             fav = flock.favorites.updateOrCreateFavorite(fav);
-            $("favoritesButton").setAttribute("state", (fav.isFavorite ? 'on' : 'off'));
+            this.mButton.updateState();
             return;
         },/*}}}*/
         cmd_favoriteCreateCurrentDetailed: function () {/*{{{*/
             var fav = flock.favorites.currentAsFavorite;
             fav = flock.favorites.updateOrCreateFavorite(fav, true);
-            $("favoritesButton").setAttribute("state", (fav.isFavorite ? 'on' : 'off'));
+            this.mButton.updateState();
             return;
         },/*}}}*/
         cmd_favoriteGoManager: function () {/*{{{*/
@@ -93,17 +95,16 @@
 
     
     var webProgressListener = new flock.browser.WebProgressListener({
-        onNewLocation: function (aUrl) {/*{{{*/
-
-        
-            // check for tabs
+        mButton: $("favoritesButton"),
+        updateCreateFromTabs: function () {/*{{{*/
             if (flock.browser.currentTabs.length > 1) {
                flock.xul.enable($('cmd_collectionCreateFromTabs'));
             }
             else {
                flock.xul.disable($('cmd_collectionCreateFromTabs'));
             }
-            
+        },/*}}}*/
+        updateGoWebService: function () {/*{{{*/
             // XXX andy: this is not the right place to be doing this
             //           we should really probably add a listener to the
             //           web service
@@ -113,8 +114,16 @@
             else {
                 flock.xul.disable($('cmd_favoriteGoWebService'));
             }
-
-            $("favoritesButton").setAttribute("state", (flock.favorites.service.isFavorite(aUrl) ? 'on' : 'off'));
+        },/*}}}*/
+        updateButton: function () {/*{{{*/
+            this.mButton.updateState();
+        },/*}}}*/
+        onNewLocation: function (aUrl) {/*{{{*/
+            this.updateCreateFromTabs();
+            this.updateGoWebService();
+            this.updateButton();
+            
+            flock.xul.disable($('cmd_viewFeedsToggle'));
             // reset the feed state onLocationChange
             flock.browser.currentFeeds = [];
             flock.browser.currentFeedInfo = [];
@@ -163,8 +172,8 @@
             //    XXX('STUFF');
             //    flock.browser.openFeeds([flock.browser.currentUrl]);
             //}
-        }/*}}}*/
-    });
+        }
+    });/*}}}*/
 
     window.getBrowser().addProgressListener(
         webProgressListener,
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/content/favoritesOverlay.xul
--- a/mozilla/browser/components/flock/favorites/content/favoritesOverlay.xul	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/favorites/content/favoritesOverlay.xul	Thu Jan 12 18:09:08 2006 +0100
@@ -157,7 +157,6 @@
 
     
     
-    <!-- XXX andy: switch this to dblclick star-and-tag -->
     <toolbaritem id="urlbar-container"><!--{{{-->
         <starbutton id="favoritesButton"
             ondblclick="flock.command('cmd_favoriteCreateCurrentDetailed');"
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/content/starButton.xml
--- a/mozilla/browser/components/flock/favorites/content/starButton.xml	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/favorites/content/starButton.xml	Thu Jan 12 18:09:08 2006 +0100
@@ -34,9 +34,9 @@
                     class="box-inherit toolbarbutton-menubutton-button"
                     allowevents="true"
                     xbl:inherits="disabled,image,label,crop,accesskey,command,buttonover,buttondown,align,dir,pack,orient,toolbarmade,buttonstyle" />
-                <xul:dropmarker type="menu-button"
-                    xbl:inherits="open,disabled,toolbarmode,buttonstyle"
-                    class="toolbarbutton-menubutton-dropmarker" />
+                <!--<xul:dropmarker type="menu-button"-->
+                <!--    xbl:inherits="open,disabled,toolbarmode,buttonstyle"-->
+                <!--    class="toolbarbutton-menubutton-dropmarker" />-->
             </xul:stack>
         </content>
         <implementation implements="nsIWebProgressListener">
@@ -73,15 +73,15 @@
             <method name="updateState"><!--{{{-->
                 <body>
                     <![CDATA[
-                    if (this._url && this._url.length) {
-                        this._favorite = this._svc.isFavorite(this._url);
-                    }
+                    var isFav = flock.favorites.isFavorite(
+                        flock.browser.currentUrl
+                    );
                     
                     //var state = "";
                     //state += 'plus' + (this._favorite ? 'On' : 'Off');
                     //state += this._hover ? 'Hover' : '';
 
-                    this.setAttribute("state", (this._favorite ? 'on' : 'off'));
+                    this.setAttribute("state", (isFav ? 'on' : 'off'));
                     ]]>
                 </body>
             </method><!--}}}-->
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/skin/classic/collectionIcon16.png
Binary file mozilla/browser/components/flock/favorites/skin/classic/collectionIcon16.png has changed
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/skin/classic/favoritesManager.css
--- a/mozilla/browser/components/flock/favorites/skin/classic/favoritesManager.css	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/favorites/skin/classic/favoritesManager.css	Thu Jan 12 18:09:08 2006 +0100
@@ -1,9 +1,11 @@
 #favoritesManagerLeft {
     border-right: 1px solid #666;
+	background: #F2F2F2;
 }
 
 
 #collectionListBox slicklistitem {
+	height: 30px;
     padding: 4px 6px;
     border-width: 0px;
     background-image: none;
@@ -30,17 +32,39 @@
 	margin: 0;
 }
 
+#flock_addCollection {
+	-moz-appearance: none !important;
+	text-indent: -1000em;
+	width: 18px;
+	height: 16px;
+	margin: 0;
+	padding: 0;
+	float: right;
+	cursor: pointer;
+	background: url('chrome://browser/skin/flock/common/plus.png') 0px 0px no-repeat;
+}
+
+#favoritesManagerLeftFooter {
+	padding: 10px;
+}
+
+#flock_addCollection:hover {
+  -moz-appearance: none;
+  background-position: 0px -16px;
+}
+#flock_addCollection:active {
+  -moz-appearance: none;
+  background-position: 0px -32px;
+}
+
 .feedsButton {
 	-moz-appearance: none !important;
-	margin: 0;
-	border: 0px;
+	text-indent: -1000em;
+	width: 16px;
+	height: 16px;
+	float: right;
 	cursor: pointer;
 	background: url('chrome://browser/skin/page-livemarks.png') no-repeat transparent center;
-}
-
-
-.feedsButton .button-box {
-    display: none;
 }
 
 slicklistitem[hasFeeds="false"] .feedsButton {
@@ -61,20 +85,43 @@
 .footer {
     height: 40px;
     background-color: #EEE;
-    border-top: 1px solid #666;
+    border-top: 1px solid #999;
+	padding: 5px 0;
 }
 
-/*treechildren::-moz-tree-cell(public) {*/
-/*    background-color: green;*/
-/*}*/
+#favoritesManagerSearchbox {
+  background: url("chrome://browser/skin/search-bar-background.png") no-repeat;
+  -moz-appearance: none;
+  font: icon;
+  height: 22px !important;
+  width: 200px !important;
+  padding: 4px 3px 4px 5px;
+}
 
-/*treechildren::-moz-tree-cell(local) {*/
-/*    background-color: gray;*/
-/*}*/
+#favoritesManagerSearchbox .textbox-input-box {
+  background: url("chrome://browser/skin/Search-bar.png") no-repeat left top transparent;
+  padding-left: 20px;
+}
 
-/*treechildren::-moz-tree-cell(local) {*/
-/*    list-style-image: url(chrome://browser/skin/flock/common/close_inactive.png);*/
-/*}*/
+#favoritesManagerSearchbox .textbox-input {
+  background-color: transparent;
+}
+
+.favoritesManagerSearchbox-dropmarker {
+  min-width: 22px;
+  margin: 0px 3px 0px 5px;  
+}
+
+.favoritesManagerSearchbox-engine-image {
+  width: 16px;
+  height: 16px;
+  list-style-image: url("chrome://browser/skin/Search-bar.png");
+}
+
+
+treechildren::-moz-tree-image(Name) {
+	list-style-image: none;
+}
 
 treechildren::-moz-tree-image(sharing, favorite, local-, private-false),
 treechildren::-moz-tree-image(sharing, favorite, local-, private-),
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/skin/classic/historyIcon16.png
Binary file mozilla/browser/components/flock/favorites/skin/classic/historyIcon16.png has changed
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/favorites/skin/classic/libraryIcon16.png
Binary file mozilla/browser/components/flock/favorites/skin/classic/libraryIcon16.png has changed
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/feed/content/feed.js
--- a/mozilla/browser/components/flock/feed/content/feed.js	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/feed/content/feed.js	Thu Jan 12 18:09:08 2006 +0100
@@ -1,18 +1,25 @@
 // vim: foldmethod=marker
 
-flock.feed = {
+flock.feed = {/*{{{*/
     // para todo mal
     // mezcal
     // y para todo bien
     // tambien
-};
+};/*}}}*/
 
 
-flock.feed.__defineGetter__('service', function () {
+flock.feed.__defineGetter__('service', function () {/*{{{*/
     if (flock.feed._service) return flock.feed._service;
     flock.feed._service = flock.xpcom.getService(
         '@flock.com/feed-service;1',
         'flockIFeedService'
     );
     return flock.feed._service;
-});
+});/*}}}*/
+
+flock.feed.refreshFeeds = function (aFeeds) {/*{{{*/
+    aFeeds.forEach(function (aVal) {
+        XXX('REFRESHING FEED', aVal);
+        flock.feed.service.refreshFeed(aVal);   
+    });
+}/*}}}*/
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/feed/content/scripts/toggle.js
--- a/mozilla/browser/components/flock/feed/content/scripts/toggle.js	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/feed/content/scripts/toggle.js	Thu Jan 12 18:09:08 2006 +0100
@@ -64,3 +64,7 @@
     }
   }      
 }
+
+function headlinesOnly(show) {
+  toggleByClassName('content', show);
+}
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/feed/content/templates/agg_by_date.html
--- a/mozilla/browser/components/flock/feed/content/templates/agg_by_date.html	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/feed/content/templates/agg_by_date.html	Thu Jan 12 18:09:08 2006 +0100
@@ -25,6 +25,8 @@
 
   <div class="tool-links unread-all">
     <ul>
+      <li><input type="checkbox" onclick="headlinesOnly(this.checked)" />
+      headlines only</li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('post-read',true)" class="toggle-unread">unread</a></li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('post-read',false)" class="toggle-all">all</a></li>
     </ul>
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/feed/content/templates/agg_by_feed.html
--- a/mozilla/browser/components/flock/feed/content/templates/agg_by_feed.html	Wed Jan 11 23:06:36 2006 -0800
+++ b/mozilla/browser/components/flock/feed/content/templates/agg_by_feed.html	Thu Jan 12 18:09:08 2006 +0100
@@ -25,6 +25,8 @@
 
   <div class="tool-links expand-collapse">
     <ul>
+      <li><input type="checkbox" onclick="headlinesOnly(this.checked)" />
+      headlines only</li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('content',true)" class="collapse-all">Collapse all</a></li>
       <li><a href="javascript:void(0)" onclick="toggleByClassName('content',false)" class="expand-all">Expand all</a></li>
     </ul>
diff -r 2566fe7d85d1 -r 89408208d1d0 mozilla/browser/components/flock/common/skin/classic/plus.png
Binary file mozilla/browser/components/flock/common/skin/classic/plus.png has changed
