r19669 - gnucash/trunk/src/html - Bug 611077: Warn instead of assert about gtk_html_jump_to_anchor not being implemented in webkit. Note, however, that Webkit seems to take care of this on its own, so even the warning may be unnecessary.

John Ralls jralls at code.gnucash.org
Sun Oct 17 16:21:42 EDT 2010


Author: jralls
Date: 2010-10-17 16:21:41 -0400 (Sun, 17 Oct 2010)
New Revision: 19669
Trac: http://svn.gnucash.org/trac/changeset/19669

Modified:
   gnucash/trunk/src/html/gnc-html-webkit.c
Log:
Bug 611077: Warn instead of assert about gtk_html_jump_to_anchor not being implemented in webkit. Note, however, that Webkit seems to take care of this on its own, so even the warning may be unnecessary.

Modified: gnucash/trunk/src/html/gnc-html-webkit.c
===================================================================
--- gnucash/trunk/src/html/gnc-html-webkit.c	2010-10-17 19:48:13 UTC (rev 19668)
+++ gnucash/trunk/src/html/gnc-html-webkit.c	2010-10-17 20:21:41 UTC (rev 19669)
@@ -462,7 +462,8 @@
                     gtk_main_iteration();
                 }
 //				gtk_html_jump_to_anchor( GTK_HTML(priv->html), label );
-                g_assert( FALSE );
+		g_warning("jump_to_anchor is (still) unimplemented with the webkit viewer. Anchor=\"%s\"", label);
+
             }
 
             return;
@@ -865,7 +866,8 @@
     else if ( safe_strcmp( type, URL_TYPE_JUMP ) == 0 )
     {
 //		gtk_html_jump_to_anchor( GTK_HTML(priv->html), label );
-        g_assert( FALSE );
+	g_warning("jump_to_anchor is (still) unimplemented with the webkit viewer. Anchor=\"%s\"", label);
+//        g_assert( FALSE );
 
     }
     else if ( safe_strcmp( type, URL_TYPE_SECURE ) == 0 ||



More information about the gnucash-changes mailing list