Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/6a1511ce9967f55ce15691b4a5f5aa6fbd1a7e4b
...commit
http://git.netsurf-browser.org/netsurf.git/commit/6a1511ce9967f55ce15691b4a5f5aa6fbd1a7e4b
...tree
http://git.netsurf-browser.org/netsurf.git/tree/6a1511ce9967f55ce15691b4a5f5aa6fbd1a7e4b
The branch, master has been updated
via 6a1511ce9967f55ce15691b4a5f5aa6fbd1a7e4b (commit)
from 52d0583acee1d65d3cc9fa093f76ffae175f7035 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=6a1511ce9967f55ce15691b4a5f5aa6fbd1a7e4b
commit 6a1511ce9967f55ce15691b4a5f5aa6fbd1a7e4b
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Treeview: Redraw full text on treeview search text sets.
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 8079a1b..27be737 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -361,6 +361,26 @@ static inline void treeview__cw_invalidate_area(
/**
+ * Corewindow callback wrapper: Request a full redraw of the window
+ *
+ * \param[in] tree The treeview to request redraw on.
+ */
+static inline void treeview__cw_full_redraw(
+ const struct treeview *tree)
+{
+ if (tree->cw_t != NULL) {
+ static const struct rect r = {
+ .x0 = 0,
+ .y0 = 0,
+ .x1 = REDRAW_MAX,
+ .y1 = REDRAW_MAX,
+ };
+ tree->cw_t->invalidate(tree->cw_h, &r);
+ }
+}
+
+
+/**
* Get height used by treeview's search bar (or 0 if not present).
*
* \param tree Treeview object to check.
@@ -4890,6 +4910,8 @@ nserror treeview_set_search_string(
return NSERROR_UNKNOWN;
}
+ treeview__cw_full_redraw(tree);
+
return NSERROR_OK;
}
-----------------------------------------------------------------------
Summary of changes:
desktop/treeview.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 8079a1b..27be737 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -361,6 +361,26 @@ static inline void treeview__cw_invalidate_area(
/**
+ * Corewindow callback wrapper: Request a full redraw of the window
+ *
+ * \param[in] tree The treeview to request redraw on.
+ */
+static inline void treeview__cw_full_redraw(
+ const struct treeview *tree)
+{
+ if (tree->cw_t != NULL) {
+ static const struct rect r = {
+ .x0 = 0,
+ .y0 = 0,
+ .x1 = REDRAW_MAX,
+ .y1 = REDRAW_MAX,
+ };
+ tree->cw_t->invalidate(tree->cw_h, &r);
+ }
+}
+
+
+/**
* Get height used by treeview's search bar (or 0 if not present).
*
* \param tree Treeview object to check.
@@ -4890,6 +4910,8 @@ nserror treeview_set_search_string(
return NSERROR_UNKNOWN;
}
+ treeview__cw_full_redraw(tree);
+
return NSERROR_OK;
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]