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.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19669 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2010-10-17 20:21:41 +00:00
parent decd290b5f
commit a899e3149c

View File

@ -462,7 +462,8 @@ load_to_stream( GncHtmlWebkit* self, URLType type,
gtk_main_iteration(); gtk_main_iteration();
} }
// gtk_html_jump_to_anchor( GTK_HTML(priv->html), label ); // 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; return;
@ -865,7 +866,8 @@ impl_webkit_show_url( GncHtml* self, URLType type,
else if ( safe_strcmp( type, URL_TYPE_JUMP ) == 0 ) else if ( safe_strcmp( type, URL_TYPE_JUMP ) == 0 )
{ {
// gtk_html_jump_to_anchor( GTK_HTML(priv->html), label ); // 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 || else if ( safe_strcmp( type, URL_TYPE_SECURE ) == 0 ||