This file is indexed.

/usr/share/infon-devel/connview.py is in infon-devel 0~r218-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import gtk
import pango

class ConnView(gtk.TextView):
    def __init__(self,*args):
        gtk.TextView.__init__(self,*args)

        font_desc = pango.FontDescription('monospace 10')
        if font_desc:
            self.modify_font(font_desc)

        self.props.editable = False
        self.props.cursor_visible = False

        self.props.buffer.create_tag("system", foreground="#555")
        self.props.buffer.create_tag("incoming", foreground="blue")
        self.props.buffer.create_tag("outgoing", foreground="red")

        self.connect_after("realize",ConnView.realized)
    
    def realized(self):
        end = self.props.buffer.get_end_iter()
        self.scroll_to_iter(end,0.1)

    def append_system(self, text):
        buffer = self.props.buffer
        end = buffer.get_end_iter()
        buffer.insert_with_tags_by_name(end, text, "system")
        if self.flags() & gtk.REALIZED:
            self.scroll_mark_onscreen(buffer.get_insert())
    
    def append_incoming(self, text):
        buffer = self.props.buffer
        end = buffer.get_end_iter()
        buffer.insert_with_tags_by_name(end, text, "incoming")
        if self.flags() & gtk.REALIZED:
            self.scroll_mark_onscreen(buffer.get_insert())
    
    def append_outgoing(self, text):
        buffer = self.props.buffer
        end = buffer.get_end_iter()
        buffer.insert_with_tags_by_name(end, text, "outgoing")
        if self.flags() & gtk.REALIZED:
            self.scroll_mark_onscreen(buffer.get_insert())

# vim:ts=4:sw=4:sts=4:et