evolution-rss r197 - in trunk: . src



Author: lucilanga
Date: Sun Mar  2 16:47:25 2008
New Revision: 197
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=197&view=rev

Log:
libxul support; atom fixes

Modified:
   trunk/ChangeLog
   trunk/configure.ac
   trunk/src/rss.c

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Sun Mar  2 16:47:25 2008
@@ -186,6 +186,10 @@
 			AC_DEFINE_UNQUOTED(HAVE_XULRUNNER, 1, [gecko flavour is xulrunner])
 			AC_SUBST(HAVE_XULRUNNER)
 			fi
+			if test "x$GECKO" == "xlibxul"; then
+			AC_DEFINE_UNQUOTED(HAVE_LIBXUL, 1, [libxul flavour of xulrunner])
+			AC_SUBST(HAVE_LIBXUL)
+			fi
 		fi
 		AC_ARG_WITH([primary-render],
         		AS_HELP_STRING([--with-primary-render],[Forces Gecko to be the primary html renderer  @<:@=gecko|webkit@:>@ (default:gtkHTML)]),

Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c	(original)
+++ trunk/src/rss.c	Sun Mar  2 16:47:25 2008
@@ -2337,7 +2337,7 @@
 //#ifdef RSS_DEBUG
 	g_print("feed %s\n", user_data);
 //#endif
-//
+
 	while (gtk_events_pending ())
             gtk_main_iteration ();
 
@@ -3383,7 +3383,6 @@
 #endif
 		if (node->ns && node->ns->prefix)
 		{
-//                	printf("ns:%s\n", node->ns->prefix);
 			for (i=0; i < 3; i++)
 			{
 				if (!strcasecmp (node->ns->prefix, standard_rss_modules[i][1]))
@@ -3395,11 +3394,12 @@
 			}
 		}
                 if (strcasecmp (node->name, match)==0) {
-                        if (node->children != NULL && node->children->next != NULL) {
+                        if (node->children != NULL 
+			&& node->children->next != NULL) {
 #ifdef RDF_DEBUG
 				g_print("NODE DUMP:%s\n", xmlNodeGetContent(node->children->next));
 #endif
-				len = xmlNodeDump(buf, node->doc, node->children->next, 0, 0);
+				len = xmlNodeDump(buf, node->doc, node->children, 0, 0);
 				content = g_strdup_printf("%s", xmlBufferContent(buf));
 				xmlBufferFree(buf);
 				return content;



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