1 |
graaff 08/09/28 07:55:40 |
2 |
|
3 |
Added: ruby-gtk2-0.16.0-gtk-file-system-error.patch |
4 |
Log: |
5 |
Fix compatibility with gtk+ 2.14.3 |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-ruby/ruby-gtk2/files/ruby-gtk2-0.16.0-gtk-file-system-error.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-gtk2/files/ruby-gtk2-0.16.0-gtk-file-system-error.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-gtk2/files/ruby-gtk2-0.16.0-gtk-file-system-error.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: ruby-gtk2-0.16.0-gtk-file-system-error.patch |
15 |
=================================================================== |
16 |
Starting with 2.14 the GTK+ FileSystemError is no longer available due |
17 |
to the move to GIO internally. This structure was also never intended |
18 |
to be exposed, so we are removing it here. See bug |
19 |
http://bugs.gentoo.org/show_bug.cgi?id=238837 for more details. |
20 |
|
21 |
--- gtk/src/rbgtkfilechooser.c.orig 2006-12-29 14:17:28.000000000 +0100 |
22 |
+++ gtk/src/rbgtkfilechooser.c 2008-09-28 09:40:10.573694830 +0200 |
23 |
@@ -16,10 +16,6 @@ |
24 |
|
25 |
#define _SELF(self) GTK_FILE_CHOOSER(RVAL2GOBJ(self)) |
26 |
|
27 |
-/* For error handling */ |
28 |
-#define GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED |
29 |
-#include <gtk/gtkfilesystem.h> |
30 |
- |
31 |
static VALUE |
32 |
gslist2ary_free(list) |
33 |
GSList* list; |
34 |
@@ -367,14 +363,6 @@ |
35 |
/* GtkFileChooserError */ |
36 |
G_DEF_ERROR(GTK_FILE_CHOOSER_ERROR, "FileChooserError", mGtk, rb_eRuntimeError, |
37 |
GTK_TYPE_FILE_CHOOSER_ERROR); |
38 |
- /* GtkFileSystemError */ |
39 |
- fse = G_DEF_ERROR2(GTK_FILE_SYSTEM_ERROR, "FileSystemError", mGtk, rb_eRuntimeError); |
40 |
- rb_define_const(fse, "NONEXISTENT", INT2NUM(GTK_FILE_SYSTEM_ERROR_NONEXISTENT)); |
41 |
- rb_define_const(fse, "NOT_FOLDER", INT2NUM(GTK_FILE_SYSTEM_ERROR_NOT_FOLDER)); |
42 |
- rb_define_const(fse, "INVALID_URI", INT2NUM(GTK_FILE_SYSTEM_ERROR_INVALID_URI)); |
43 |
- rb_define_const(fse, "BAD_FILENAME", INT2NUM(GTK_FILE_SYSTEM_ERROR_BAD_FILENAME)); |
44 |
- rb_define_const(fse, "FAILED", INT2NUM(GTK_FILE_SYSTEM_ERROR_FAILED)); |
45 |
- rb_define_const(fse, "ALREADY_EXSITS", INT2NUM(GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS)); |
46 |
|
47 |
#if GTK_CHECK_VERSION(2,8,0) |
48 |
/* GtkFileChooserConfirmation */ |