Bug 46425 - ebview-0.3.5 fails to emerge with gtk+-2.4.0
Bug#: 46425 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: usata@gentoo.org Reported By: ikezoe@users.sourceforge.jp
Component: Applications
URL: 
Summary: ebview-0.3.5 fails to emerge with gtk+-2.4.0
Keywords:  
Status Whiteboard: 
Opened: 2004-03-31 16:50 0000
Description:   Opened: 2004-03-31 16:50 0000
ebview-0.3.35 fails to emege with gtk+2.4.0.

The following patch fixes this problems.

Though it's tentative solution, it's useful until next ebview releasing. 

--- ebview-0.3.5/src/defs.h     2004-02-15 22:59:41.000000000 +0900
+++ ebview-0.3.5_gtk240/src/defs.h      2004-03-31 23:53:22.000000000 +0900
@@ -19,7 +19,9 @@
 #define __DEFS_H__
 
 /* Disable old GTK+ functions */
+#if (GTK_MAJOR_VERSION == 2) && (GTK_MINOR_VERSION < 3)
 #define GTK_DISABLE_DEPRECATED 1
+#endif
 
 #include "../config.h"
 #include <sys/stat.h>
--- ebview-0.3.5/src/ebview.c   2004-02-22 12:46:29.000000000 +0900
+++ ebview-0.3.5_gtk240/src/ebview.c    2004-03-31 23:52:43.000000000 +0900
@@ -15,7 +15,9 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
-#define GTK_DISABLE_DEPRECATED 1
+#if (GTK_MAJOR_VERSION == 2) && (GTK_MINOR_VERSION < 3)
+#define GTK_DISABLE_DEPRECATED 1 
+#endif
 
 #define _GLOBAL
 #include <signal.h>


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2004-04-01 10:09:08 0000 -------
Applied. Thanks for the patch.