forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gimp-2.9.2-gegl-0.3.8.patch
54 lines (52 loc) · 1.77 KB
/
gimp-2.9.2-gegl-0.3.8.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
https://bugs.gentoo.org/586828
Backported from:
https://git.gnome.org/browse/gimp/commit/?id=2e4685013123c584354bc38612527593a815c38b
--- gimp-2.9.2/app/core/gimpparamspecs-duplicate.c
+++ gimp-2.9.2/app/core/gimpparamspecs-duplicate.c
@@ -66,23 +66,11 @@
}
else
{
-
copy = g_param_spec_string (pspec->name,
g_param_spec_get_nick (pspec),
g_param_spec_get_blurb (pspec),
spec->default_value,
flags);
-
- if (GEGL_IS_PARAM_SPEC_MULTILINE (pspec))
- {
- static GQuark multiline_quark = 0;
-
- if (! multiline_quark)
- multiline_quark = g_quark_from_static_string ("multiline");
-
- g_param_spec_set_qdata (copy, multiline_quark,
- GINT_TO_POINTER (TRUE));
- }
}
}
else if (G_IS_PARAM_SPEC_BOOLEAN (pspec))
--- gimp-2.9.2/app/widgets/gimppropgui.c
+++ gimp-2.9.2/app/widgets/gimppropgui.c
@@ -227,11 +227,6 @@
}
else if (G_IS_PARAM_SPEC_STRING (pspec))
{
- static GQuark multiline_quark = 0;
-
- if (! multiline_quark)
- multiline_quark = g_quark_from_static_string ("multiline");
-
if (GIMP_IS_PARAM_SPEC_CONFIG_PATH (pspec))
{
widget =
@@ -239,7 +234,7 @@
g_param_spec_get_nick (pspec),
GTK_FILE_CHOOSER_ACTION_OPEN);
}
- else if (g_param_spec_get_qdata (pspec, multiline_quark))
+ else if (HAS_KEY (pspec, "multiline", "true"))
{
GtkTextBuffer *buffer;
GtkWidget *view;