def _add_a_new_preview(self, cursor, child=None): p = Post(cursor) if child: p.flowbox = child else: p.flowbox = self.flowbox p.connect('info-updated', self._insert_post)
def _post_activated(self, box, child, user_data=None): cursor = child.get_children()[0].post post = Post(cursor) child.set_opacity(0.5) child.set_tooltip_text(_('This article was already read')) self.emit('open-article', post)
def _post_activated(self, box, child, user_data=None): cursor = child.get_children()[0].post post = Post(cursor) self.emit('open-article', post)
def _add_a_new_preview(self, cursor): p = Post(cursor) p.connect('info-updated', self._insert_post)