From: | "Joe Sapp (nixphoeni)" <nixphoeni@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-misc/gourmet/files: gourmet-0.16.1-pictures-dir.patch |
Date: | Sun, 09 Feb 2014 17:28:31 |
Message-Id: | 20140209172826.BAD1C2004C@flycatcher.gentoo.org |
1 | nixphoeni 14/02/09 17:28:26 |
2 | |
3 | Added: gourmet-0.16.1-pictures-dir.patch |
4 | Log: |
5 | Add patch to fix adding pictures in "oddball WMs" per bug #489974 |
6 | |
7 | (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 341D8825) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-misc/gourmet/files/gourmet-0.16.1-pictures-dir.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/gourmet/files/gourmet-0.16.1-pictures-dir.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/gourmet/files/gourmet-0.16.1-pictures-dir.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gourmet-0.16.1-pictures-dir.patch |
16 | =================================================================== |
17 | --- gourmet/gtk_extras/dialog_extras.py 2013-10-31 09:03:08.456469166 -0500 |
18 | +++ gourmet/gtk_extras/dialog_extras.py 2013-10-31 09:04:18.175067008 -0500 |
19 | @@ -1096,7 +1096,9 @@ |
20 | buttons=None |
21 | ): |
22 | FileSelectorDialog.__init__(self, title, filename, filters, action, set_filter, buttons) |
23 | - self.fsd.set_current_folder(get_user_special_dir(USER_DIRECTORY_PICTURES)) |
24 | + pictures_dir = get_user_special_dir(USER_DIRECTORY_PICTURES) |
25 | + if not pictures_dir == None: |
26 | + self.fsd.set_current_folder(pictures_dir) |
27 | |
28 | def post_dialog (self): |
29 | self.preview = gtk.Image() |