[yelp] [libyelp/yelp-view] Don't include line numbers when copying code blocks
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] [libyelp/yelp-view] Don't include line numbers when copying code blocks
- Date: Thu, 9 Dec 2010 17:03:59 +0000 (UTC)
commit e950d0a69230064bd99ffc6ce1d9f08dbc1f2160
Author: Shaun McCance <shaunm gnome org>
Date: Thu Dec 9 12:02:51 2010 -0500
[libyelp/yelp-view] Don't include line numbers when copying code blocks
Fixes bug #636390
libyelp/yelp-view.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index e3ae7e8..c2b80eb 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -1002,7 +1002,9 @@ view_populate_popup (YelpView *view,
webkit_dom_element_webkit_matches_selector ((WebKitDOMElement *) cur,
"div.code", NULL)) {
WebKitDOMNode *title;
- code_node = cur;
+ code_node = (WebKitDOMNode *)
+ webkit_dom_element_query_selector ((WebKitDOMElement *) cur,
+ "pre.contents", NULL);
title = webkit_dom_node_get_parent_node (cur);
if (title != NULL && WEBKIT_DOM_IS_ELEMENT (title) &&
webkit_dom_element_webkit_matches_selector ((WebKitDOMElement *) title,
@@ -1031,8 +1033,9 @@ view_populate_popup (YelpView *view,
gint i, tmpi;
gboolean ws;
- child = webkit_dom_element_query_selector (WEBKIT_DOM_ELEMENT (link_node),
- "div.linkdiv div.title", NULL);
+ child = (WebKitDOMNode *)
+ webkit_dom_element_query_selector (WEBKIT_DOM_ELEMENT (link_node),
+ "div.linkdiv div.title", NULL);
if (child != NULL)
priv->popup_link_text = webkit_dom_node_get_text_content (child);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]