[gtk+] testgtk: Avoid deprecation warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testgtk: Avoid deprecation warnings
- Date: Fri, 29 Jan 2016 16:54:27 +0000 (UTC)
commit e79db79e2c058684dfd9907b65e713ee532e002e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 29 11:51:09 2016 -0500
testgtk: Avoid deprecation warnings
Eventually, we should probably remove the examples that rely
on geometry support, since they probably don't work correctly
anymore. For now, just disable the warnings.
tests/testgtk.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index be43772..55572f5 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -7678,8 +7678,10 @@ set_geometry_callback (GtkWidget *entry,
text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (!gtk_window_parse_geometry (target, text))
g_print ("Bad geometry string '%s'\n", text);
+G_GNUC_END_IGNORE_DEPRECATIONS
g_free (text);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]