~ubuntu-branches/ubuntu/vivid/gpodder/vivid

« back to all changes in this revision

Viewing changes to src/gpodder/gtkui/shownotes.py

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-04-12 22:07:02 UTC
  • mfrom: (5.2.27 sid)
  • Revision ID: package-import@ubuntu.com-20130412220702-mux8v9r8zt2jin0x
Tags: 3.5.1-1
* New upstream release.
* d/control: declare versioned dependency on python-gtk2 (>= 2.16)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
#
3
3
# gPodder - A media aggregator and podcast client
4
 
# Copyright (c) 2005-2012 Thomas Perl and the gPodder Team
 
4
# Copyright (c) 2005-2013 Thomas Perl and the gPodder Team
5
5
#
6
6
# gPodder is free software; you can redistribute it and/or modify
7
7
# it under the terms of the GNU General Public License as published by
69
69
        self.text_view = gtk.TextView()
70
70
        self.text_view.set_wrap_mode(gtk.WRAP_WORD_CHAR)
71
71
        self.text_view.set_border_width(10)
 
72
        self.text_view.set_editable(False)
72
73
        self.text_buffer = gtk.TextBuffer()
73
74
        self.text_buffer.create_tag('heading', scale=pango.SCALE_LARGE, weight=pango.WEIGHT_BOLD)
74
75
        self.text_buffer.create_tag('subheading', scale=pango.SCALE_SMALL)
75
76
        self.text_view.set_buffer(self.text_buffer)
76
 
        self.scrolled_window.add(self.text_view)
77
77
        self.text_view.modify_bg(gtk.STATE_NORMAL,
78
78
                gtk.gdk.color_parse('#ffffff'))
79
79
        return self.text_view