mfabik / rpms / satyr

Forked from rpms/satyr 3 years ago
Clone

Blame SOURCES/satyr-0.13-normalization-additional-X-GDK-functions.patch

01add4
From e436cd0b6eb389e6803b8b519e936429e694e453 Mon Sep 17 00:00:00 2001
01add4
From: Martin Milata <mmilata@redhat.com>
01add4
Date: Fri, 28 Nov 2014 17:59:45 +0100
01add4
Subject: [PATCH] normalization: additional X/GDK functions
01add4
01add4
Closes #199.
01add4
01add4
Signed-off-by: Martin Milata <mmilata@redhat.com>
01add4
---
01add4
 lib/normalize.c | 7 +++++--
01add4
 1 file changed, 5 insertions(+), 2 deletions(-)
01add4
01add4
diff --git a/lib/normalize.c b/lib/normalize.c
01add4
index 81be188..0e9b497 100644
01add4
--- a/lib/normalize.c
01add4
+++ b/lib/normalize.c
01add4
@@ -100,7 +100,8 @@ is_removable_gdk(const char *function_name,
01add4
         call_match(function_name, source_file, "gdk_x_error", "gdkmain-x11.c", NULL) ||
01add4
         call_match(function_name, source_file, "gdk_threads_dispatch", "gdk.c", NULL) ||
01add4
         call_match(function_name, source_file, "gdk_event_dispatch", "gdkevents-x11.c", "gdkevents.c", NULL) ||
01add4
-        call_match(function_name, source_file, "gdk_event_source_dispatch", "gdkeventsource.c", NULL);
01add4
+        call_match(function_name, source_file, "gdk_event_source_dispatch", "gdkeventsource.c", NULL) ||
01add4
+        call_match(function_name, source_file, "_gdk_x11_display_error_event", "gdkdisplay-x11.c", "libgdk", NULL);
01add4
 }
01add4
 
01add4
 static bool
01add4
@@ -170,7 +171,9 @@ is_removable_xorg(const char *function_name,
01add4
         call_match(function_name, source_file, "AbortServer", "log.c", NULL) ||
01add4
         call_match(function_name, source_file, "AbortDDX", "xf86Init.c", NULL) ||
01add4
         call_match(function_name, source_file, "ddxGiveUp", "xf86Init.c", NULL) ||
01add4
-        call_match(function_name, source_file, "OsAbort", "utils.c", NULL);
01add4
+        call_match(function_name, source_file, "OsAbort", "utils.c", NULL) ||
01add4
+        call_match(function_name, source_file, "handle_error", "xcb_io.c", "libX11", NULL) ||
01add4
+        call_match(function_name, source_file, "handle_response", "xcb_io.c", "libX11", NULL);
01add4
 }
01add4
 
01add4
 static bool
01add4
-- 
01add4
1.8.3.1
01add4