[gnome-build-meta/jjardon/wayland_only: 1/11] elements/sdk/gtk+-3.bst: Add patch to fix compilation on wayland



commit 881d805a1c3dd86f3c4a55e93b30416936c792aa
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Nov 23 23:45:55 2019 +0900

    elements/sdk/gtk+-3.bst: Add patch to fix compilation on wayland

 elements/sdk/gtk+-3.bst                            |  2 ++
 ...gtkstatusicon.c-Add-a-case-for-others-way.patch | 36 ++++++++++++++++++++++
 2 files changed, 38 insertions(+)
---
diff --git a/elements/sdk/gtk+-3.bst b/elements/sdk/gtk+-3.bst
index 95c965db..f4f5e07e 100644
--- a/elements/sdk/gtk+-3.bst
+++ b/elements/sdk/gtk+-3.bst
@@ -3,6 +3,8 @@ sources:
 - kind: git_tag
   url: gitlab_gnome_org:GNOME/gtk.git
   track: gtk-3-24
+- kind: patch
+  path: files/gtk/0001-deprecated-gtkstatusicon.c-Add-a-case-for-others-way.patch
 build-depends:
 - sdk/gtk-doc.bst
 - freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
diff --git a/files/gtk/0001-deprecated-gtkstatusicon.c-Add-a-case-for-others-way.patch 
b/files/gtk/0001-deprecated-gtkstatusicon.c-Add-a-case-for-others-way.patch
new file mode 100644
index 00000000..1a362355
--- /dev/null
+++ b/files/gtk/0001-deprecated-gtkstatusicon.c-Add-a-case-for-others-way.patch
@@ -0,0 +1,36 @@
+From d4ef1d792cd5fa7a2de52aecea9aa538e747e288 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Javier=20Jard=C3=B3n?= <jjardon gnome org>
+Date: Sat, 23 Nov 2019 23:43:32 +0900
+Subject: [PATCH] deprecated/gtkstatusicon.c: Fix compilation in wayland
+
+Without this compilation in a wayland-only system fails
+---
+ gtk/deprecated/gtkstatusicon.c | 9 +--------
+ 1 file changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/gtk/deprecated/gtkstatusicon.c b/gtk/deprecated/gtkstatusicon.c
+index 0c9dae62e6..9e107d76a5 100644
+--- a/gtk/deprecated/gtkstatusicon.c
++++ b/gtk/deprecated/gtkstatusicon.c
+@@ -2273,17 +2273,10 @@ gtk_status_icon_is_embedded (GtkStatusIcon *status_icon)
+ 
+ #ifdef GDK_WINDOWING_X11
+   if (status_icon->priv->tray_icon &&
+-      gtk_plug_get_embedded (GTK_PLUG (status_icon->priv->tray_icon)))
+-    return TRUE;
+-  else
++      !gtk_plug_get_embedded (GTK_PLUG (status_icon->priv->tray_icon)))
+     return FALSE;
+ #endif
+-#ifdef GDK_WINDOWING_WIN32
+   return TRUE;
+-#endif
+-#ifdef GDK_WINDOWING_QUARTZ
+-  return TRUE;
+-#endif
+ }
+ 
+ /**
+-- 
+2.23.0
+


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