Пример #1
0
 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)
Пример #2
0
    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)
Пример #3
0
 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)
Пример #4
0
 def _post_activated(self, box, child, user_data=None):
     cursor = child.get_children()[0].post
     post = Post(cursor)
     self.emit('open-article', post)
Пример #5
0
 def _add_a_new_preview(self, cursor):
     p = Post(cursor)
     p.connect('info-updated', self._insert_post)