Added
Link Here
|
1 |
--- configure 2020-06-07 20:13:09.165799417 +0000 |
2 |
+++ configure 2020-06-07 20:12:54.318912986 +0000 |
3 |
@@ -3308,7 +3308,7 @@ GLIB_VERSION_CFLAGS="-DGLIB_MIN_REQUIRED_VERSION=GLIB_ |
4 |
|
5 |
|
6 |
|
7 |
-GLIB_REQUIRED_VERSION=2.57.2 |
8 |
+GLIB_REQUIRED_VERSION=2.56.3 |
9 |
PANGO_REQUIRED_VERSION=1.41.0 |
10 |
ATK_REQUIRED_VERSION=2.15.1 |
11 |
CAIRO_REQUIRED_VERSION=1.14.0 |
12 |
@@ -23543,12 +23543,12 @@ if test -n "$BASE_DEPENDENCIES_CFLAGS"; then |
13 |
pkg_cv_BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS" |
14 |
elif test -n "$PKG_CONFIG"; then |
15 |
if test -n "$PKG_CONFIG" && \ |
16 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0\""; } >&5 |
17 |
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0") 2>&5 |
18 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0\""; } >&5 |
19 |
+ ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0") 2>&5 |
20 |
ac_status=$? |
21 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
22 |
test $ac_status = 0; }; then |
23 |
- pkg_cv_BASE_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>/dev/null` |
24 |
+ pkg_cv_BASE_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>/dev/null` |
25 |
test "x$?" != "x0" && pkg_failed=yes |
26 |
else |
27 |
pkg_failed=yes |
28 |
@@ -23560,12 +23560,12 @@ if test -n "$BASE_DEPENDENCIES_LIBS"; then |
29 |
pkg_cv_BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS" |
30 |
elif test -n "$PKG_CONFIG"; then |
31 |
if test -n "$PKG_CONFIG" && \ |
32 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0\""; } >&5 |
33 |
- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0") 2>&5 |
34 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0\""; } >&5 |
35 |
+ ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0") 2>&5 |
36 |
ac_status=$? |
37 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
38 |
test $ac_status = 0; }; then |
39 |
- pkg_cv_BASE_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>/dev/null` |
40 |
+ pkg_cv_BASE_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>/dev/null` |
41 |
test "x$?" != "x0" && pkg_failed=yes |
42 |
else |
43 |
pkg_failed=yes |
44 |
@@ -23586,14 +23586,14 @@ else |
45 |
_pkg_short_errors_supported=no |
46 |
fi |
47 |
if test $_pkg_short_errors_supported = yes; then |
48 |
- BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>&1` |
49 |
+ BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>&1` |
50 |
else |
51 |
- BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>&1` |
52 |
+ BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0" 2>&1` |
53 |
fi |
54 |
# Put the nasty error message in config.log where it belongs |
55 |
echo "$BASE_DEPENDENCIES_PKG_ERRORS" >&5 |
56 |
|
57 |
- as_fn_error $? "Package requirements (glib-2.0 >= 2.57.2 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0) were not met: |
58 |
+ as_fn_error $? "Package requirements (glib-2.0 >= 2.56.3 atk >= 2.15.1 pango >= 1.41.0 fribidi >= 0.19.7 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0) were not met: |
59 |
|
60 |
$BASE_DEPENDENCIES_PKG_ERRORS |
61 |
|
62 |
@@ -24385,7 +24385,7 @@ else |
63 |
fi |
64 |
|
65 |
|
66 |
- min_glib_version=2.57.2 |
67 |
+ min_glib_version=2.56.3 |
68 |
pkg_config_args="glib-2.0 >= $min_glib_version" |
69 |
for module in . gobject gmodule-no-export |
70 |
do |
71 |
@@ -24879,7 +24879,7 @@ rm -f core conftest.err conftest.$ac_objext \ |
72 |
GLIB_MKENUMS="" |
73 |
GLIB_COMPILE_RESOURCES="" |
74 |
as_fn_error $? " |
75 |
-*** GLIB 2.57.2 or better is required. The latest version of |
76 |
+*** GLIB 2.56.3 or better is required. The latest version of |
77 |
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/." "$LINENO" 5 |
78 |
fi |
79 |
rm -f conf.glibtest |
80 |
@@ -26825,12 +26825,12 @@ if test "$os_win32" != "yes"; then |
81 |
have_gio_unix=yes |
82 |
fi |
83 |
if test "$have_gio_unix" = "yes"; then |
84 |
- GDK_GIO_PACKAGE="gio-unix-2.0 >= 2.57.2" |
85 |
+ GDK_GIO_PACKAGE="gio-unix-2.0 >= 2.56.3" |
86 |
|
87 |
$as_echo "#define HAVE_GIO_UNIX 1" >>confdefs.h |
88 |
|
89 |
else |
90 |
- GDK_GIO_PACKAGE="gio-2.0 >= 2.57.2" |
91 |
+ GDK_GIO_PACKAGE="gio-2.0 >= 2.56.3" |
92 |
fi |
93 |
|
94 |
# Check for Pango flags |
95 |
@@ -27134,13 +27134,13 @@ $as_echo "yes" >&6; } |
96 |
|
97 |
fi |
98 |
|
99 |
-GTK_PACKAGES="atk >= 2.15.1 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0 gio-2.0 >= 2.57.2" |
100 |
+GTK_PACKAGES="atk >= 2.15.1 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0 gio-2.0 >= 2.56.3" |
101 |
GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $WAYLAND_PACKAGES epoxy >= 1.4 fribidi >= 0.19.7" |
102 |
if test "x$enable_x11_backend" = xyes -o "x$enable_wayland_backend" = xyes; then |
103 |
GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES pangoft2" |
104 |
fi |
105 |
if test "$have_gio_unix" = "yes"; then |
106 |
- GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES gio-unix-2.0 >= 2.57.2" |
107 |
+ GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES gio-unix-2.0 >= 2.56.3" |
108 |
fi |
109 |
GTK_EXTRA_LIBS= |
110 |
|
111 |
diff --git gtk/gtkmountoperation.c gtk/gtkmountoperation.c |
112 |
index 43b039e40e..8ca5c55413 100644 |
113 |
--- gtk/gtkmountoperation.c |
114 |
+++ gtk/gtkmountoperation.c |
115 |
@@ -121,10 +121,14 @@ struct _GtkMountOperationPrivate { |
116 |
GtkWidget *username_entry; |
117 |
GtkWidget *domain_entry; |
118 |
GtkWidget *password_entry; |
119 |
+#if GLIB_CHECK_VERSION(2, 57, 2) |
120 |
GtkWidget *pim_entry; |
121 |
+#endif |
122 |
GtkWidget *anonymous_toggle; |
123 |
+#if GLIB_CHECK_VERSION(2, 57, 2) |
124 |
GtkWidget *tcrypt_hidden_toggle; |
125 |
GtkWidget *tcrypt_system_toggle; |
126 |
+#endif |
127 |
GList *user_widgets; |
128 |
|
129 |
GAskPasswordFlags ask_flags; |
130 |
@@ -351,6 +355,7 @@ pw_dialog_got_response (GtkDialog *dialog, |
131 |
g_mount_operation_set_password (op, text); |
132 |
} |
133 |
|
134 |
+#if GLIB_CHECK_VERSION(2, 57, 2) |
135 |
if (priv->pim_entry) |
136 |
{ |
137 |
text = gtk_entry_get_text (GTK_ENTRY (priv->pim_entry)); |
138 |
@@ -371,6 +376,7 @@ pw_dialog_got_response (GtkDialog *dialog, |
139 |
|
140 |
if (priv->tcrypt_system_toggle && gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->tcrypt_system_toggle))) |
141 |
g_mount_operation_set_is_tcrypt_system_volume (op, TRUE); |
142 |
+#endif |
143 |
|
144 |
if (priv->ask_flags & G_ASK_PASSWORD_SAVING_SUPPORTED) |
145 |
g_mount_operation_set_password_save (op, priv->password_save); |
146 |
@@ -399,6 +405,7 @@ entry_has_input (GtkWidget *entry_widget) |
147 |
return text != NULL && text[0] != '\0'; |
148 |
} |
149 |
|
150 |
+#if GLIB_CHECK_VERSION(2, 57, 2) |
151 |
static gboolean |
152 |
pim_entry_is_valid (GtkWidget *entry_widget) |
153 |
{ |
154 |
@@ -421,6 +428,7 @@ pim_entry_is_valid (GtkWidget *entry_widget) |
155 |
else |
156 |
return TRUE; |
157 |
} |
158 |
+#endif |
159 |
|
160 |
static gboolean |
161 |
pw_dialog_input_is_valid (GtkMountOperation *operation) |
162 |
@@ -435,8 +443,12 @@ pw_dialog_input_is_valid (GtkMountOperation *operation |
163 |
* definitively needs a password. |
164 |
*/ |
165 |
is_valid = entry_has_input (priv->username_entry) && |
166 |
+#if GLIB_CHECK_VERSION(2, 57, 2) |
167 |
entry_has_input (priv->domain_entry) && |
168 |
pim_entry_is_valid (priv->pim_entry); |
169 |
+#else |
170 |
+ entry_has_input (priv->domain_entry); |
171 |
+#endif |
172 |
|
173 |
return is_valid; |
174 |
} |
175 |
@@ -705,6 +717,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS |
176 |
priv->domain_entry = table_add_entry (operation, rows++, _("_Domain"), |
177 |
default_domain, operation); |
178 |
|
179 |
+#if GLIB_CHECK_VERSION(2, 57, 2) |
180 |
priv->pim_entry = NULL; |
181 |
if (priv->ask_flags & G_ASK_PASSWORD_TCRYPT) |
182 |
{ |
183 |
@@ -729,6 +742,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS |
184 |
|
185 |
priv->pim_entry = table_add_entry (operation, rows++, _("_PIM"), NULL, operation); |
186 |
} |
187 |
+#endif |
188 |
|
189 |
priv->password_entry = NULL; |
190 |
if (priv->ask_flags & G_ASK_PASSWORD_NEED_PASSWORD) |
191 |
@@ -846,12 +860,14 @@ call_password_proxy_cb (GObject *source, |
192 |
g_mount_operation_set_password (op, g_variant_get_string (value, NULL)); |
193 |
else if (strcmp (key, "password_save") == 0) |
194 |
g_mount_operation_set_password_save (op, g_variant_get_uint32 (value)); |
195 |
+#if GLIB_CHECK_VERSION(2, 57, 2) |
196 |
else if (strcmp (key, "hidden_volume") == 0) |
197 |
g_mount_operation_set_is_tcrypt_hidden_volume (op, g_variant_get_boolean (value)); |
198 |
else if (strcmp (key, "system_volume") == 0) |
199 |
g_mount_operation_set_is_tcrypt_system_volume (op, g_variant_get_boolean (value)); |
200 |
else if (strcmp (key, "pim") == 0) |
201 |
g_mount_operation_set_pim (op, g_variant_get_uint32 (value)); |
202 |
+#endif |
203 |
} |
204 |
|
205 |
out: |
206 |
diff --git meson.build meson.build |
207 |
index 415a66c732..9081b03381 100644 |
208 |
--- meson.build |
209 |
+++ meson.build |
210 |
@@ -8,8 +8,8 @@ project('gtk+-3.0', 'c', |
211 |
license: 'LGPLv2.1+') |
212 |
|
213 |
glib_major_req = 2 |
214 |
-glib_minor_req = 57 |
215 |
-glib_micro_req = 2 |
216 |
+glib_minor_req = 56 |
217 |
+glib_micro_req = 3 |
218 |
|
219 |
if glib_minor_req.is_odd() |
220 |
glib_min_required = 'GLIB_VERSION_@0@_@1@'.format(glib_major_req, glib_minor_req - 1) |