Exemple #1
0
        public void Populate(Summa.Data.Item item)
        {
            this.item = item;

            if ( item.Flagged ) {
                Label = "Unflag This Item";
            } else {
                Label = "Flag This Item";
            }

            Sensitive = true;
        }
Exemple #2
0
        public void UpdateHtmlview()
        {
            curitem = ItemView.Selected;
            Bin c = (Bin)ItemNotebook.GetNthPage(0);
            WebKitView view = (WebKitView)c.Child;
            view.Render(curitem);
            ItemNotebook.ShowAll();

            print_action.CheckShouldSensitive();
            bookmark_action.CheckShouldSensitive();
            new_tab_action.Sensitive = true;

            if ( ItemNotebook.CurrentView.CanZoom() ) {
                zoom_in_action.CheckShouldSensitive();
                zoom_out_action.CheckShouldSensitive();
            }

            flag_action.Populate(ItemView.Selected);
            unread_action.Populate(ItemView.Selected);
            play_action.Populate(ItemView.Selected);
            save_action.Populate(ItemView.Selected);
            play_action.SetToPlay();

            if ( !ItemView.Selected.Read ) {
                ItemView.Selected.Read = true;
            }
        }
 public void Render(Summa.Data.Item item)
 {
     Render(Config.Theme.MakeHtml(item));
     SelectedItem = item;
     Database.ItemChanged += OnItemChanged;
 }
Exemple #4
0
        private Summa.Data.Item ItemFromIter(TreeIter treeiter)
        {
            string val = (string)store.GetValue(iter, 5);
            bool fail = false;
            Summa.Data.Item item = null;

            try {
                item = new Summa.Data.Item(val, feedobj.Url);
                if ( item.Title == null ) {
                    fail = true;
                }
            } catch ( Exception ) {
                fail = true;
            }

            if ( fail ) {
                item = Feeds.GetItem(val);
            }

            return item;
        }
Exemple #5
-1
        public void Populate(Summa.Data.Item item)
        {
            this.item = item;

            if ( item.Read ) {
                Label = "Mark As Unread";
            } else {
                Label = "Mark As Read";
            }

            Sensitive = true;
        }