~mmcg069/software-center/bug855666

« back to all changes in this revision

Viewing changes to softwarecenter/view/widgets/navigationbar.py

merged (and fixed conflicts) from  lp:~gary-lasker/software-center/sourcesview  

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        if not id in self.id_to_widget:
89
89
            return
90
90
        return self.id_to_widget[id].get_label()
 
91
        
 
92
    def set_label(self, new_label, id):
 
93
        """
 
94
        Set the label of the navigation button with the given id to
 
95
        the value specified
 
96
        """
 
97
        if not id in self.id_to_widget:
 
98
            return
 
99
        self.id_to_widget[id].set_label(new_label)
91
100
 
92
101