seed r741 - in trunk: examples libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r741 - in trunk: examples libseed
- Date: Wed, 14 Jan 2009 21:01:51 +0000 (UTC)
Author: racarr
Date: Wed Jan 14 21:01:51 2009
New Revision: 741
URL: http://svn.gnome.org/viewvc/seed?rev=741&view=rev
Log:
Fix Soup example, and consistency with struct constructors/object
constructors.
Modified:
trunk/examples/soup.js
trunk/libseed/seed-engine.c
Modified: trunk/examples/soup.js
==============================================================================
--- trunk/examples/soup.js (original)
+++ trunk/examples/soup.js Wed Jan 14 21:01:51 2009
@@ -4,7 +4,8 @@
var session = new Soup.SessionSync();
-var uri = new Soup.URI.c_new("http://www.google.com");
+// Soup.URI is a struct.
+var uri = Soup.URI.c_new("http://www.google.com");
var request = new Soup.Message({method:"GET", uri:uri});
var status = session.send_message(request);
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Wed Jan 14 21:01:51 2009
@@ -484,7 +484,7 @@
name = g_base_info_get_name((GIBaseInfo *) info);
if (!strcmp(name, "new"))
- name = "_new";
+ name = "c_new";
seed_object_set_property(ctx, object, name, method_ref);
seed_object_set_property(ctx, method_ref, "info",
seed_make_struct(ctx,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]