~ubuntu-branches/ubuntu/raring/screenlets/raring

« back to all changes in this revision

Viewing changes to src/lib/options/font_option.py

  • Committer: Package Import Robot
  • Author(s): Julien Lavergne
  • Date: 2012-02-12 22:47:27 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20120212224727-kjobpgxp3tmw95qd
Tags: upstream-0.1.6
ImportĀ upstreamĀ versionĀ 0.1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
2
2
# Copyright (C) 2009 Martin Owens (DoctorMO) <doctormo@gmail.com>
3
3
#
4
 
# This program is free software; you can redistribute it and/or modify
 
4
# This program is free software: you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
6
 
# the Free Software Foundation; either version 3 of the License, or
 
6
# the Free Software Foundation, either version 3 of the License, or
7
7
# (at your option) any later version.
8
8
9
9
# This program is distributed in the hope that it will be useful,
12
12
# GNU General Public License for more details.
13
13
14
14
# You should have received a copy of the GNU General Public License
15
 
# along with this program; if not, write to the Free Software
16
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
16
18
17
"""
19
18
Font options, these classes will display a text box.
38
37
        """Generate a special widget for font options"""
39
38
        self.widget = gtk.FontButton()
40
39
        self.set_value(value)
41
 
        self.widget.connect("font-set", self.has_changed)
 
40
        if self.realtime:
 
41
            self.widget.connect("font-set", self.has_changed)
42
42
        return self.widget
43
43
 
44
44
    def set_value(self, value):