[maemo-commits] [maemo-commits] r12599 - in projects/haf/trunk/gtkhtml: . debian upstream/patches
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Jul 2 16:21:30 EEST 2007
- Previous message: [maemo-commits] r12598 - in projects/haf/trunk/hildon-desktop: . debian
- Next message: [maemo-commits] r12600 - projects/haf/tags/hildon-desktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: schulhof Date: 2007-07-02 16:21:16 +0300 (Mon, 02 Jul 2007) New Revision: 12599 Added: projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_240_last_search_selected_area.diff Modified: projects/haf/trunk/gtkhtml/ChangeLog projects/haf/trunk/gtkhtml/debian/changelog Log: * Added patch from Jose Dapena Paz for exporting last search selected area Modified: projects/haf/trunk/gtkhtml/ChangeLog =================================================================== --- projects/haf/trunk/gtkhtml/ChangeLog 2007-07-02 13:18:12 UTC (rev 12598) +++ projects/haf/trunk/gtkhtml/ChangeLog 2007-07-02 13:21:16 UTC (rev 12599) @@ -1,6 +1,10 @@ +2007-07-02 Gabriel Schulhof <gabriel.schulhof at nokia.com> + + * Added patch from Jose Dapena Paz for exporting last search selected area + 2007-05-30 Gabriel Schulhof <gabriel.schulhof at nokia.com> - * Added patch to remove instances where libart_lgpl headers are being included + * Added patch to remove instances where libart_lgpl headers are being included 2007-05-09 Gabriel Schulhof <gabriel.schulhof at nokia.com> Modified: projects/haf/trunk/gtkhtml/debian/changelog =================================================================== --- projects/haf/trunk/gtkhtml/debian/changelog 2007-07-02 13:18:12 UTC (rev 12598) +++ projects/haf/trunk/gtkhtml/debian/changelog 2007-07-02 13:21:16 UTC (rev 12599) @@ -1,3 +1,9 @@ +gtkhtml (3.9.1-3osso11) unstable; urgency=low + + * Added patch from Jose Dapena Paz for exporting last search selected area + + -- Gabriel Schulhof <gabriel.schulhof at nokia.com> Mon, 2 Jul 2007 15:57:31 +0300 + gtkhtml (3.9.1-3osso10) unstable; urgency=low * Added patch to remove instances where libart_lgpl headers are being included Added: projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_240_last_search_selected_area.diff =================================================================== --- projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_240_last_search_selected_area.diff 2007-07-02 13:18:12 UTC (rev 12598) +++ projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_240_last_search_selected_area.diff 2007-07-02 13:21:16 UTC (rev 12599) @@ -0,0 +1,132 @@ +diff -r -U 5 gtkhtml-3.13.91/src/gtkhtml.c gtkhtml-3.13.91-selected-area-api/src/gtkhtml.c +--- gtkhtml-3.13.91/src/gtkhtml.c 2007-06-25 11:09:14.970379010 +0200 ++++ gtkhtml-3.13.91-selected-area-api/src/gtkhtml.c 2007-06-25 11:05:48.745596648 +0200 +@@ -5929,10 +5929,16 @@ + g_return_if_fail (GTK_IS_HTML (html)); + + gtk_html_set_magnification (html, 1.0); + } + ++void ++gtk_html_get_selection_area (GtkHTML *html, gint *x, gint *y, gint *w, gint *h) ++{ ++ html_engine_get_selection_area (html->engine, x, y, w, h); ++} ++ + void + gtk_html_set_allow_frameset (GtkHTML *html, gboolean allow) + { + g_return_if_fail (GTK_IS_HTML (html)); + g_return_if_fail (HTML_IS_ENGINE (html->engine)); +diff -r -U 5 gtkhtml-3.13.91/src/gtkhtml.h gtkhtml-3.13.91-selected-area-api/src/gtkhtml.h +--- gtkhtml-3.13.91/src/gtkhtml.h 2007-06-25 11:09:14.977378731 +0200 ++++ gtkhtml-3.13.91-selected-area-api/src/gtkhtml.h 2007-06-25 11:05:48.815593858 +0200 +@@ -344,9 +344,14 @@ + GtkHTMLSaveReceiverFn receiver, + gpointer data); + GtkHTMLStream *gtk_html_begin_content (GtkHTML *html, + gchar *content_type); + void gtk_html_drag_dest_set (GtkHTML *html); ++void gtk_html_get_selection_area (GtkHTML *html, ++ gint *x, ++ gint *y, ++ gint *w, ++ gint *h); + + #endif + + #endif /* _GTKHTML_H_ */ +diff -r -U 5 gtkhtml-3.13.91/src/htmlengine-search.c gtkhtml-3.13.91-selected-area-api/src/htmlengine-search.c +--- gtkhtml-3.13.91/src/htmlengine-search.c 2007-06-25 11:09:14.444399968 +0200 ++++ gtkhtml-3.13.91-selected-area-api/src/htmlengine-search.c 2007-06-25 11:05:48.056624103 +0200 +@@ -93,10 +93,15 @@ + ex += last->width; + ey += last->descent; + w = ex - x; + h = ey - y; + ++ e->search_area_x = x; ++ e->search_area_y = y; ++ e->search_area_w = w; ++ e->search_area_h = h; ++ + /* now calculate gtkhtml adustments */ + if (x <= ep->x_offset) + nx = x; + else if (x + w > ep->x_offset + ep->width) + nx = x + w - ep->width; +diff -r -U 5 gtkhtml-3.13.91/src/htmlengine-search.h gtkhtml-3.13.91-selected-area-api/src/htmlengine-search.h +--- gtkhtml-3.13.91/src/htmlengine-search.h 2007-01-03 16:19:57.000000000 +0100 ++++ gtkhtml-3.13.91-selected-area-api/src/htmlengine-search.h 2007-06-25 11:05:48.106622111 +0200 +@@ -30,5 +30,9 @@ + gboolean forward); + gboolean html_engine_search_next (HTMLEngine *e); + gboolean html_engine_search_incremental (HTMLEngine *e, + const gchar *text, + gboolean forward); ++ ++void html_engine_search_get_selected_area (HTMLEngine *e, ++ gint *x, gint *y, ++ gint *w, gint *h); +diff -r -U 5 gtkhtml-3.13.91/src/htmlengine.c gtkhtml-3.13.91-selected-area-api/src/htmlengine.c +--- gtkhtml-3.13.91/src/htmlengine.c 2007-06-25 11:09:14.988378293 +0200 ++++ gtkhtml-3.13.91-selected-area-api/src/htmlengine.c 2007-06-25 11:05:47.689638728 +0200 +@@ -6584,5 +6584,28 @@ + html_object_change_set_down (e->clue, HTML_CHANGE_ALL); + html_engine_calc_size (e, FALSE); + html_engine_schedule_update (e); + } + } ++ ++static void ++add_iframe_off (HTMLEngine *e, gint *x, gint *y) ++{ ++ g_assert (e); ++ g_assert (e->widget); ++ ++ if (e->widget->iframe_parent) { ++ *x += e->widget->iframe_parent->allocation.x; ++ *y += e->widget->iframe_parent->allocation.y; ++ } ++} ++ ++void ++html_engine_get_selection_area (HTMLEngine *e, ++ gint *x, gint *y, ++ gint *w, gint *h) ++{ ++ *x = e->search_area_x; ++ *y = e->search_area_y; ++ *w = e->search_area_w; ++ *h = e->search_area_h; ++} +diff -r -U 5 gtkhtml-3.13.91/src/htmlengine.h gtkhtml-3.13.91-selected-area-api/src/htmlengine.h +--- gtkhtml-3.13.91/src/htmlengine.h 2007-06-25 11:09:14.993378094 +0200 ++++ gtkhtml-3.13.91-selected-area-api/src/htmlengine.h 2007-06-25 11:05:47.727637213 +0200 +@@ -265,10 +265,15 @@ + + gboolean expose; + gboolean need_update; + + HTMLObject *parser_clue; /* the root of the currently parsed block */ ++ ++ gint search_area_x; ++ gint search_area_y; ++ gint search_area_w; ++ gint search_area_h; + }; + + /* must be forward referenced *sigh* */ + struct _HTMLEmbedded; + +@@ -492,7 +497,10 @@ + void html_engine_opened_streams_decrement (HTMLEngine *e); + void html_engine_opened_streams_set (HTMLEngine *e, int value); + + void html_engine_refresh_fonts (HTMLEngine *e); + void html_engine_set_link_visited (HTMLEngine *e, char *url, gboolean visited) ; ++void html_engine_get_selection_area (HTMLEngine *e, ++ gint *x, gint *y, ++ gint *w, gint *h); + + #endif /* _HTMLENGINE_H_ */
- Previous message: [maemo-commits] r12598 - in projects/haf/trunk/hildon-desktop: . debian
- Next message: [maemo-commits] r12600 - projects/haf/tags/hildon-desktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]