[gnome-build-meta/abderrahim/backports] sdk/gtk+-3: backport a patch to fix build



commit 2a0f861299d4d4f8de471866a5034c0f6d99a529
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Dec 14 12:29:51 2018 +0100

    sdk/gtk+-3: backport a patch to fix build

 elements/sdk/gtk+-3.bst                            |  2 ++
 .../0001-Revert-Fix-deprecation-warnings.patch     | 33 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)
---
diff --git a/elements/sdk/gtk+-3.bst b/elements/sdk/gtk+-3.bst
index 4708072..482cf77 100644
--- a/elements/sdk/gtk+-3.bst
+++ b/elements/sdk/gtk+-3.bst
@@ -3,6 +3,8 @@ sources:
 - kind: tar
   url: https://download.gnome.org/sources/gtk+/3.24/gtk+-3.24.2.tar.xz
   ref: 5b3b05e427cc928d103561ed2e91b2b2881fe88b1f167b0b1c9990da6aac8892
+- kind: patch
+  path: files/gtk3/0001-Revert-Fix-deprecation-warnings.patch
 depends:
 - sdk/at-spi2-atk.bst
 - sdk/atk.bst
diff --git a/files/gtk3/0001-Revert-Fix-deprecation-warnings.patch 
b/files/gtk3/0001-Revert-Fix-deprecation-warnings.patch
new file mode 100644
index 0000000..854e78a
--- /dev/null
+++ b/files/gtk3/0001-Revert-Fix-deprecation-warnings.patch
@@ -0,0 +1,33 @@
+From 2905fc861acda3d134a198e56ef2f6c962ad3061 Mon Sep 17 00:00:00 2001
+From: Daniel Boles <dboles src gmail com>
+Date: Wed, 12 Dec 2018 19:03:11 +0000
+Subject: [PATCH] Revert "Fix deprecation warnings"
+
+This reverts commit 5aedfe048b0fe07382433f1a78ec5bd26acd82dd.
+
+It had a typo that broke the build, only replaced half of the uses, and
+replaced them with other functions that are also deprecated anyway.
+---
+ docs/tools/shooter.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/docs/tools/shooter.c b/docs/tools/shooter.c
+index 3d910c6ab8..8cefa8bbf7 100644
+--- a/docs/tools/shooter.c
++++ b/docs/tools/shooter.c
+@@ -170,10 +170,10 @@ take_window_shot (Window         child,
+       y_orig = 0;
+     }
+ 
+-  if (x_orig + width > gdk_screen_get_width (gdk_screen_get_dfeault ()))
++  if (x_orig + width > gdk_screen_width ())
+     width = gdk_screen_width () - x_orig;
+ 
+-  if (y_orig + height > gdk_screen_get_height (gdk_screen_get_default ()))
++  if (y_orig + height > gdk_screen_height ())
+     height = gdk_screen_height () - y_orig;
+ 
+   tmp = gdk_pixbuf_get_from_window (window,
+-- 
+2.19.2
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]