~gotwig/gazette/global-service-states

« back to all changes in this revision

Viewing changes to plugins/News/News.vala

  • Committer: gotwig at ubuntu
  • Date: 2013-08-02 15:04:03 UTC
  • Revision ID: gotwig@ubuntu.com-20130802150403-tt3u42nn9jeoulqn
more improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        public News ()
18
18
        {
19
19
                settings = new Settings ("org.pantheon.gazette.news");
20
 
                settings.changed.connect( (key) => { if (key != "update-interval") update(); });
 
20
                //settings.changed.connect( (key) => { if (key != "update-interval") update(); });
21
21
                session = new Soup.SessionAsync ();
22
22
        }
23
23
    public override Service create_service () {
24
24
        service = new Service(this);
25
25
                session = new Soup.SessionAsync ();
26
 
            set_update_interval(settings.get_int("update-interval"));
 
26
            //set_update_interval(settings.get_int("update-interval"));
27
27
        service.title = _("News");
28
28
        return service;
29
29
    }
68
68
        
69
69
        settings = new Settings ("org.pantheon.gazette.news");
70
70
        var rss_url = settings.get_string("rss-url");
71
 
        var update_interval = settings.get_int("update-interval");
 
71
        //var update_interval = settings.get_int("update-interval");
72
72
        
73
73
        // URL LABEL
74
74
        var rssLabel = new Gtk.Label (_("URL") + " :");