Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46425 - ebview-0.3.5 fails to emerge with gtk+-2.4.0
Summary: ebview-0.3.5 fails to emerge with gtk+-2.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mamoru KOMACHI (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-31 16:50 UTC by ikezoe
Modified: 2004-04-01 10:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ikezoe 2004-03-31 16:50:46 UTC
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 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-04-01 10:09:08 UTC
Applied. Thanks for the patch.