Package: exactimage / 1.0.2-1

Disable-unused-Evas-Helper-function-to-avoid-FTBFS.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From: Sven Eckelmann <sven@narfation.org>
Date: Sun, 16 Mar 2014 15:08:49 +0100
Subject: Disable unused Evas Helper function to avoid FTBFS

Evas_Object and Evas are defined as the same type. Thus it is not possible to
overload a function with the only difference (beside the return type) that one
has a parameter from type Evas_Object and the other one from type Evas.

These function are never used and thus can be removed without problems.
---
 gfx/X11Helper.cc | 4 ++--
 gfx/X11Helper.hh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gfx/X11Helper.cc b/gfx/X11Helper.cc
index f22982a..f58e6ed 100644
--- a/gfx/X11Helper.cc
+++ b/gfx/X11Helper.cc
@@ -123,7 +123,7 @@ Visual* X11Window::ColorVisual (Display* dpy, Window window) {
   XGetWindowAttributes (dpy, window, &xgwa);
   return xgwa.visual;
 }
-  
+#if 0
 Evas_Object* X11Window::CaptureIntoEvasImage (Evas* evas,
 					      Display* dpy,
 					      Window window,
@@ -232,7 +232,7 @@ void X11Window::CaptureIntoEvasImage (Evas_Object* ob,
   XDestroyImage (ximage2);
   XDestroyImage (ximage);
 }
-
+#endif
 int X11Window::screen_number (Screen *screen)
 {
   Display *dpy = DisplayOfScreen (screen);
diff --git a/gfx/X11Helper.hh b/gfx/X11Helper.hh
index e7a26d0..15a93f3 100644
--- a/gfx/X11Helper.hh
+++ b/gfx/X11Helper.hh
@@ -73,7 +73,7 @@ class X11Window
   
   static int Depth (Display* dpy, Window window);
   static Visual* ColorVisual (Display* dpy, Window window);
-
+#if 0
   static Evas_Object* CaptureIntoEvasImage (Evas* evas,
 					    Display* dpy,
 					    Window window,
@@ -83,7 +83,7 @@ class X11Window
 				    Display* dpy,
 				    Window window,
 				    int x, int y, int w, int h);
-  
+#endif
   static void StayOnTop (Display* dpy, Window win);
   
 private: