~ubuntuone-control-tower/software-center/trunk

« back to all changes in this revision

Viewing changes to softwarecenter/backend/channel.py

* softwarecenter/app.py,
  softwarecenter/backend/channel.py:
  - fix multiple instances of the "Previous Purchases"
    item in the left navigation pane (LP: #645439)
* README: 
  - fix typo

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
            self.backend.emit("channels-changed", True)
83
83
 
84
84
    def add_channel(self, name, icon, query):
 
85
        """
 
86
        create a channel with the name, icon and query specified and append
 
87
        it to the set of channels
 
88
        return the new channel object
 
89
        """
85
90
        # print name, icon, query
86
91
        channel = SoftwareChannel(self.icons, name, None, None, 
87
92
                                  channel_icon=icon,
95
100
        else:
96
101
            channel._channel_color = '#0769BC'
97
102
            channel._channel_image_id = VIEW_PAGE_AVAILABLE
 
103
        return channel
98
104
 
99
105
    # internal
100
106
    def _feed_in_private_sources_list_entry(self, source_entry):