summaryrefslogtreecommitdiff
path: root/multimedia/ripperX/gtk_cpp_workaround.patch
blob: fc6eef0443863825ba02b2e9226258ac0ed11a6f (plain)
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
diff -urN ripperx-2.8.0/src/gtk_cpp_workaround.h ripperx-2.8.0/src/gtk_cpp_workaround.h
--- ripperx-2.8.0/src/gtk_cpp_workaround.h	1969-12-31 16:00:00.000000000 -0800
+++ ripperx-2.8.0/src/gtk_cpp_workaround.h	2016-10-06 12:47:06.512778792 -0700
@@ -0,0 +1,39 @@
+#ifndef gtk_cpp_workaround_h
+#define gtk_cpp_workaround_h
+#ifdef __cplusplus
+//proto is wrong, override here for C++
+namespace 
+{
+  
+inline void gtk_table_attach (GtkTable *table,
+		       GtkWidget *child,
+		       guint left_attach,
+		       guint right_attach,
+		       guint top_attach,
+		       guint bottom_attach,
+		       //GtkAttachOptions xoptions,
+		       //GtkAttachOptions yoptions,
+		       guint xoptions, guint yoptions,
+		       guint xpadding,
+		       guint ypadding
+		       ) 
+{
+  gtk_table_attach(table,
+		   child,
+		   left_attach,
+		   right_attach,
+		   top_attach,
+		   bottom_attach,
+		   (GtkAttachOptions)xoptions, 
+		   (GtkAttachOptions)yoptions,
+		   xpadding,
+		   ypadding
+		   );
+  
+    };
+
+
+}
+
+#endif
+#endif