~mmcg069/software-center/bigger-icons

« back to all changes in this revision

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

  • Committer: Matthew McGowan
  • Date: 2010-07-25 04:41:34 UTC
  • Revision ID: matthew@matthew-laptop-20100725044134-00p7kg8l54ra1qxr
ome fixes for the CaroselPoster class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
947
947
 
948
948
    def _on_enter(self, cat, event):
949
949
        if cat == self._button_press_origin:
 
950
            self._colorise_image_active()
 
951
            self._colorise_label_active()
950
952
            cat.set_state(gtk.STATE_ACTIVE)
951
953
        else:
952
954
            cat.set_state(gtk.STATE_PRELIGHT)
1086
1088
        self._base_pixbuf = pb
1087
1089
        return
1088
1090
 
 
1091
    def set_image_from_pixbuf(self, pb):
 
1092
        self.image.set_from_pixbuf(pb)
 
1093
        self._base_pixbuf = pb
 
1094
        return
 
1095
 
1089
1096
    def draw(self, cr, a, expose_area, alpha=1.0, focus_draw=True):
1090
1097
        if not_overlapping(a, expose_area): return
1091
1098