Re: Deprecated calls in libzvt



On Thu, 2002-02-07 at 09:51, Deepa wrote:
> Hi Jacob
> 
> I tried the way you suggested. It gave only one undefined reference error  for
> GDK_FONT_XFONT. This was because it was deprecated and defined in gdkx.h. So,
> I put gdkx.h also between the undef-define as you suggested. After this, it did
> not give me any compilation or linking errors/warnings.

ok, this is still using deprecated calls.

i added -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED (it should also include
-DGDK_PIXBUF_DISABLE_DEPRECATED) to the INCLUDES line in Makefile.am,
and i still see quite a bit of deprecated calls being used.

to get around GDK_FONT_XFONT, just use the gdk_x11_font_get_xfont() call
directly.

anyway, please include the attached patch in the next version, as it is
what i used to catch the errors.

jacob
-- 
"In fact, can you imagine anything more terrifying than a zombie clown?"
	-- moby
--- zvtterm.c	2002/02/06 16:02:15	1.172
+++ zvtterm.c	2002/02/07 16:23:33
@@ -28,6 +28,12 @@
 #endif
 #include <sys/types.h>
 
+#ifdef GDK_DISABLE_DEPRECATED
+#undef GDK_DISABLE_DEPRECATED
+#include <gdk/gdkfont.h>
+#define GDK_DISABLE_DEPRECATED
+#endif
+
 #include <stdio.h>
 #include <errno.h>
 #include <unistd.h>
Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/libzvt/libzvt/Makefile.am,v
retrieving revision 1.57
diff -u -r1.57 Makefile.am
--- Makefile.am	2002/02/06 16:02:15	1.57
+++ Makefile.am	2002/02/07 16:24:12
@@ -18,7 +18,9 @@
 	-DGTK_VERSION=\""$(GTK_VERSION)"\"		\
 	-DG_LOG_DOMAIN=\"ZVT\"				\
 	-DGNOMESBINDIR=\""$(sbindir)"\"                 \
-	-DVERSION=\"$(VERSION)\"
+	-DG_DISABLE_DEPRECATED		\
+	-DGDK_DISABLE_DEPRECATED	\
+	-DGTK_DISABLE_DEPRECATED
 
 libzvt_2_includedir = $(includedir)/libzvt-2.0/libzvt
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]