vala r1168 - in trunk: . gobject vala



Author: juergbi
Date: Sun Apr  6 20:43:53 2008
New Revision: 1168
URL: http://svn.gnome.org/viewvc/vala?rev=1168&view=rev

Log:
2008-04-06  Juerg Billeter  <j bitron ch>

	* vala/valapointertype.vala,
	  gobject/valaccodeassignmentbinding.vala: fix crash when using
	  pointers in parameters of D-Bus signals, fixes bug 526111


Modified:
   trunk/ChangeLog
   trunk/gobject/valaccodeassignmentbinding.vala
   trunk/vala/valapointertype.vala

Modified: trunk/gobject/valaccodeassignmentbinding.vala
==============================================================================
--- trunk/gobject/valaccodeassignmentbinding.vala	(original)
+++ trunk/gobject/valaccodeassignmentbinding.vala	Sun Apr  6 20:43:53 2008
@@ -287,8 +287,8 @@
 					register_call.add_argument (carray_type);
 					add_call.add_argument (carray_type);
 				} else {
-					register_call.add_argument (new CCodeIdentifier (param.type_reference.data_type.get_type_id ()));
-					add_call.add_argument (new CCodeIdentifier (param.type_reference.data_type.get_type_id ()));
+					register_call.add_argument (new CCodeIdentifier (param.type_reference.get_type_id ()));
+					add_call.add_argument (new CCodeIdentifier (param.type_reference.get_type_id ()));
 				}
 			}
 			register_call.add_argument (new CCodeIdentifier ("G_TYPE_INVALID"));

Modified: trunk/vala/valapointertype.vala
==============================================================================
--- trunk/vala/valapointertype.vala	(original)
+++ trunk/vala/valapointertype.vala	Sun Apr  6 20:43:53 2008
@@ -82,4 +82,8 @@
 	public override Collection<Symbol> get_symbols () {
 		return base_type.get_symbols ();
 	}
+
+	public override string? get_type_id () {
+		return "G_TYPE_POINTER";
+	}
 }



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