[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-87-g0f183ae06

jonathan at claws-mail.org jonathan at claws-mail.org
Sun Oct 22 11:52:55 UTC 2023


The branch, gtk2 has been updated
       via  0f183ae060c35cb23727498b01c9b4d4747c615e (commit)
      from  0d61d49870cf988bed2c68da52f49c1286465366 (commit)

Summary of changes:
 src/plugins/litehtml_viewer/lh_widget.cpp       | 8 ++++----
 src/plugins/litehtml_viewer/lh_widget.h         | 4 ++--
 src/plugins/litehtml_viewer/litehtml/document.h | 5 -----
 3 files changed, 6 insertions(+), 11 deletions(-)


- Log -----------------------------------------------------------------
commit 0f183ae060c35cb23727498b01c9b4d4747c615e
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date:   Sun Oct 22 02:23:38 2023 -0700

    Replace over_element() with upstream's get_over_element()

diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp
index ecad2d697..d1fa75ae9 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -290,7 +290,7 @@ void lh_widget::clear()
 
 void lh_widget::set_cursor(const char *cursor)
 {
-	litehtml::element::ptr over_el = m_html->over_element();
+	litehtml::element::const_ptr over_el = m_html->get_over_element();
 
 	if (m_showing_url &&
 			(over_el == NULL || over_el != m_over_element)) {
@@ -330,9 +330,9 @@ void lh_widget::update_cursor(const char *cursor)
 	}
 }
 
-const char *lh_widget::get_href_at(litehtml::element::ptr element) const
+const char *lh_widget::get_href_at(litehtml::element::const_ptr element)
 {
-	litehtml::element::ptr el;
+	litehtml::element::const_ptr el;
 
 	if (element == NULL)
 		return NULL;
@@ -473,7 +473,7 @@ static gboolean button_press_event(GtkWidget *widget, GdkEventButton *event,
 
 	/* Right-click */
 	if (event->button == 3) {
-		const char *url = w->get_href_at(w->m_html->over_element());
+		const char *url = w->get_href_at(w->m_html->get_over_element());
 
 		if (url != NULL)
 			w->popup_context_menu(url, event);
diff --git a/src/plugins/litehtml_viewer/lh_widget.h b/src/plugins/litehtml_viewer/lh_widget.h
index e65ba0248..97603acd0 100644
--- a/src/plugins/litehtml_viewer/lh_widget.h
+++ b/src/plugins/litehtml_viewer/lh_widget.h
@@ -59,7 +59,7 @@ class lh_widget : public container_linux
 		void update_font();
 		void print();
 
-		const char *get_href_at(litehtml::element::ptr element) const;
+		const char *get_href_at(litehtml::element::const_ptr element);
 		void popup_context_menu(const char *url, GdkEventButton *event);
 		const litehtml::string fullurl(const char *url) const;
 
@@ -77,7 +77,7 @@ class lh_widget : public container_linux
 		GtkWidget *m_viewport;
 		GtkWidget *m_context_menu;
 		gint m_height;
-		litehtml::element::ptr m_over_element;
+		litehtml::element::const_ptr m_over_element;
 		gboolean m_showing_url;
 		MimeInfo *m_partinfo;
 
diff --git a/src/plugins/litehtml_viewer/litehtml/document.h b/src/plugins/litehtml_viewer/litehtml/document.h
index b4b268ba8..e2623b222 100644
--- a/src/plugins/litehtml_viewer/litehtml/document.h
+++ b/src/plugins/litehtml_viewer/litehtml/document.h
@@ -93,7 +93,6 @@ namespace litehtml
 		bool							on_mouse_leave(position::vector& redraw_boxes);
 		element::ptr					create_element(const char* tag_name, const string_map& attributes);
 		element::ptr					root();
-		const element::ptr					over_element() const;
 		void							get_fixed_boxes(position::vector& fixed_boxes);
 		void							add_fixed_box(const position& pos);
 		void							add_media_list(const media_query_list::ptr& list);
@@ -122,10 +121,6 @@ namespace litehtml
 	{
 		return m_root;
 	}
-	inline const element::ptr document::over_element() const
-	{
-		return m_over_element;
-	}
 	inline void document::add_tabular(const std::shared_ptr<render_item>& el)
 	{
 		m_tabular_elements.push_back(el);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list