/gtk/prep-images

To get this branch, use:
bzr branch http://bzr.ed.am/gtk/prep-images

« back to all changes in this revision

Viewing changes to lib/prep_images/preferences.py

  • Committer: Tim Marston
  • Date: 2013-07-17 21:22:17 UTC
  • Revision ID: tim@ed.am-20130717212217-iip16jsy3hz5w4e9
fixed composit operator to handle light and dark images

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
# Copyright (C) 2011 Tim Marston <edam@waxworlds.org>
4
4
#
5
 
# This file is part of add-copyright-to-images (hereafter referred to as "this
6
 
# program").
7
 
# See http://www.waxworlds.org/edam/software/add-copyright-to-images for more
 
5
# This file is part of prep-images (hereafter referred to as "this program").
 
6
# See http://www.waxworlds.org/edam/software/gtk/prep-images for more
8
7
# information.
9
8
#
10
9
# This program is free software: you can redistribute it and/or modify
11
 
# it under the terms of the GNU Lesser General Public License as published
12
 
# by the Free Software Foundation, either version 3 of the License, or
 
10
# it under the terms of the GNU General Public License as published by
 
11
# the Free Software Foundation, either version 3 of the License, or
13
12
# (at your option) any later version.
14
13
#
15
14
# This program is distributed in the hope that it will be useful,
16
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
# GNU Lesser General Public License for more details.
 
17
# GNU General Public License for more details.
19
18
#
20
 
# You should have received a copy of the GNU Lesser General Public License
 
19
# You should have received a copy of the GNU General Public License
21
20
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
21
 
23
22
 
29
28
 
30
29
class Preferences:
31
30
 
32
 
        RCFILE = '~/.config/add-copyright-to-images.rc'
 
31
        RCFILE = '~/.config/prep-images.rc'
33
32
 
34
33
        def __init__( self ):
35
34
 
49
48
                                rclines = f.readlines()
50
49
                        except IOError as e:
51
50
                                dialog = gtk.MessageDialog( None, gtk.DIALOG_MODAL, \
52
 
                                                gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, \
53
 
                                                e.strerror )
 
51
                                        gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, \
 
52
                                        e.strerror )
54
53
                                dialog.run()
55
54
                                dialog.destroy()
56
55
                                exit( 1 )
86
85
                        f.write( "export-append " + self.export_append + "\n" )
87
86
                except IOError as e:
88
87
                        dialog = gtk.MessageDialog( None, gtk.DIALOG_MODAL, \
89
 
                                        gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, e.strerror )
 
88
                                gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, e.strerror )
90
89
                        dialog.run()
91
90
                        dialog.destroy()
92
91
                        exit( 1 )