~gotopad/do-plugins/TimerApplet

« back to all changes in this revision

Viewing changes to Epiphany/src/EpiphanyBookmarkItemSource.cs

  • Committer: Chris S.
  • Date: 2009-06-11 08:11:24 UTC
  • mfrom: (619.1.3 itemsource-fixes)
  • Revision ID: chris@szikszoy.com-20090611081124-f0j6ftizkpr2lwh3
add itemsource ChildrenItems to tomboy, vinagre, VBox and Epiphany plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
                public override string Icon { get { return "gnome-web-browser"; } }
51
51
 
52
52
                public override IEnumerable<Type> SupportedItemTypes {
53
 
                        get { yield return typeof (BookmarkItem); }
 
53
                        get {
 
54
                                yield return typeof (BookmarkItem); 
 
55
                                yield return typeof (IApplicationItem);
 
56
                                yield return typeof (EpiphanyBrowseBookmarksItem);
 
57
                        }
54
58
                }
55
59
 
56
60
                public override IEnumerable<Item> Items {
57
61
                        get { return items; }
58
62
                }
 
63
                
 
64
                public override IEnumerable<Item> ChildrenOfItem (Item parent)
 
65
                {
 
66
                        if (parent is IApplicationItem && (parent as IApplicationItem).Exec.Contains ("epiphany-browser"))
 
67
                                yield return new EpiphanyBrowseBookmarksItem ();
 
68
                        if (parent is EpiphanyBrowseBookmarksItem) {
 
69
                                foreach (BookmarkItem item in Items)
 
70
                                        yield return item;
 
71
                        }
 
72
                        yield break;
 
73
                }
59
74
 
60
75
                public override void UpdateItems ()
61
76
                {