gjs r73 - trunk/gi
- From: lucasr svn gnome org
- To: svn-commits-list gnome org
- Subject: gjs r73 - trunk/gi
- Date: Thu, 6 Nov 2008 16:29:02 +0000 (UTC)
Author: lucasr
Date: Thu Nov 6 16:29:01 2008
New Revision: 73
URL: http://svn.gnome.org/viewvc/gjs?rev=73&view=rev
Log:
Bug 559612 - Ignore deprecated methods definitions.
* gi/object.c, gi/boxed.c, gi/union.c: ditto.
Modified:
trunk/gi/boxed.c
trunk/gi/object.c
trunk/gi/union.c
Modified: trunk/gi/boxed.c
==============================================================================
--- trunk/gi/boxed.c (original)
+++ trunk/gi/boxed.c Thu Nov 6 16:29:01 2008
@@ -100,6 +100,16 @@
method_name = g_base_info_get_name( (GIBaseInfo*) method_info);
+ /* we do not define deprecated methods in the prototype */
+ if (g_base_info_is_deprecated( (GIBaseInfo*) method_info)) {
+ gjs_debug(GJS_DEBUG_GBOXED,
+ "Ignoring definition of deprecated method %s in prototype %s.%s",
+ method_name,
+ g_base_info_get_namespace( (GIBaseInfo*) priv->info),
+ g_base_info_get_name( (GIBaseInfo*) priv->info));
+ return JS_FALSE;
+ }
+
gjs_debug(GJS_DEBUG_GBOXED,
"Defining method %s in prototype for %s.%s",
method_name,
Modified: trunk/gi/object.c
==============================================================================
--- trunk/gi/object.c (original)
+++ trunk/gi/object.c Thu Nov 6 16:29:01 2008
@@ -347,6 +347,17 @@
method_name = g_base_info_get_name( (GIBaseInfo*) method_info);
+ /* we do not define deprecated methods in the prototype */
+ if (g_base_info_is_deprecated( (GIBaseInfo*) method_info)) {
+ gjs_debug(GJS_DEBUG_GOBJECT,
+ "Ignoring definition of deprecated method %s in prototype for %s (%s.%s)",
+ method_name,
+ g_type_name(priv->gtype),
+ g_base_info_get_namespace( (GIBaseInfo*) priv->info),
+ g_base_info_get_name( (GIBaseInfo*) priv->info));
+ return JS_FALSE;
+ }
+
gjs_debug(GJS_DEBUG_GOBJECT,
"Defining method %s in prototype for %s (%s.%s)",
method_name,
Modified: trunk/gi/union.c
==============================================================================
--- trunk/gi/union.c (original)
+++ trunk/gi/union.c Thu Nov 6 16:29:01 2008
@@ -100,6 +100,16 @@
method_name = g_base_info_get_name( (GIBaseInfo*) method_info);
+ /* we do not define deprecated methods in the prototype */
+ if (g_base_info_is_deprecated( (GIBaseInfo*) method_info)) {
+ gjs_debug(GJS_DEBUG_GBOXED,
+ "Ignoring definition of deprecated method %s in prototype %s.%s",
+ method_name,
+ g_base_info_get_namespace( (GIBaseInfo*) priv->info),
+ g_base_info_get_name( (GIBaseInfo*) priv->info));
+ return JS_FALSE;
+ }
+
gjs_debug(GJS_DEBUG_GBOXED,
"Defining method %s in prototype for %s.%s",
method_name,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]