~gary-lasker/software-center/disable-find-it-for-3.0

« back to all changes in this revision

Viewing changes to softwarecenter/view/appview.py

  • Committer: Michael Vogt
  • Date: 2010-10-01 10:35:11 UTC
  • Revision ID: michael.vogt@ubuntu.com-20101001103511-unwoo0e5ekdwyov3
fix rendering with Ambiance theme (LP: #635208)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1069
1069
 
1070
1070
        # important! ensures correct text rendering, esp. when using hicolor theme
1071
1071
        if (flags & gtk.CELL_RENDERER_SELECTED) != 0:
1072
 
            state = gtk.STATE_SELECTED
 
1072
            # this follows the behaviour that gtk+ uses for states in treeviews
 
1073
            if widget.has_focus():
 
1074
                state = gtk.STATE_SELECTED
 
1075
            else:
 
1076
                state = gtk.STATE_ACTIVE
1073
1077
        else:
1074
1078
            state = gtk.STATE_NORMAL
1075
1079