~jconti/ubuntu/precise/emesene/fix-956422

« back to all changes in this revision

Viewing changes to AvatarHistory.py

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2010-04-14 01:33:51 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100414013351-r2icbt5gs4ai71j8
Tags: 1.6.1-0ubuntu1
* New upstream release (LP: #562646).
* Fix missing-debian-source-format lintian warning.
* Refresh 20_dont_build_own_libmimic.patch patch.
* Bump Standards-Version to 3.8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        self.view = gtk.IconView(self.model)
86
86
 
87
87
        self.view.set_pixbuf_column(0)
88
 
        if os.name == "posix":
89
 
            self.view.set_tooltip_column(2)
 
88
        self.view.set_tooltip_column(2)
90
89
        self.view.set_text_column(2)
91
90
        self.view.connect("button-press-event", self._on_button_press_event)
92
91
 
93
 
        self.tooltips = gtk.Tooltips()
94
 
        self.tooltips.enable()
95
 
 
96
92
        scroll = gtk.ScrolledWindow()
97
93
        scroll.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
98
94
        scroll.set_shadow_type(gtk.SHADOW_IN)
160
156
    def is_in_view(self, filename):
161
157
        '''return True if filename already on the iconview'''
162
158
 
163
 
        if os.name == 'nt':
 
159
        if os.name != 'nt':
164
160
            # nt doesn't include os.path.samefile
165
 
            return False
166
 
 
167
 
        for (pixbuf, path,date) in self.model:
168
 
            if os.path.samefile(filename, path):
169
 
                return True
170
 
 
 
161
            for (pixbuf, path,date) in self.model:
 
162
                if os.path.samefile(filename, path):
 
163
                    return True
171
164
        return False
172
165
 
173
166
    def _on_button_press_event(self, treeview, event):