Gtkconv webview entry regression

Eion Robb eion at robbmob.com
Thu Jun 18 01:38:38 EDT 2015


Are the magic values  WEBVIEW_DOM_FONT_PADDING and WEBVIEW_DOM_TEXT_PADDING
not dependant on font-size, font-family or font-weight?

On 18 June 2015 at 14:53, Jorge Villaseñor <salinasv at gmail.com> wrote:

> Third attempt! Yeeii!
>
> ---------- Forwarded message ----------
> From: Jorge Villaseñor <salinasv at gmail.com>
> Date: Wed, Jun 17, 2015 at 7:42 PM
> Subject: Fwd: Gtkconv webview entry regression
> To: Pidgin Devel Mailing List <devel at pidgin.im>
>
>
> Second attempt to get this through
>
>
> ---------- Forwarded message ----------
> From: Jorge Villaseñor <salinasv at gmail.com>
> Date: Tue, Jun 16, 2015 at 12:02 AM
> Subject: Gtkconv webview entry regression
> To: Pidgin Devel Mailing List <devel at pidgin.im>
>
>
> As some of you have noticed, on pidgin 3.0 the gtkconv->entry sometimes
> have a 0-1 pixel height.
>
> Finally, after poking too may ways to figure this out, I found a way to
> set the size of the gtkconv entry at startup based on the prefs, autosize
> up to half the conversation window and back.
>
> The approach is to take the font-size form the DOM * min_lines from the
> prefs + some padding for initial setup and then respect the DOM size
> (+padding) to increment the size of the widget.
>
> There is only one pice of it that I was not able to solve, but this is FAR
> better than what we have right now. When we delete a line more than
> min_lines, the DOM does not return to the needed size immediately, it
> requires more events to incrementally get to the actual needed size. I
> expect some of you with more knowledge of GtkWebkit and HTML magic can
> figure out something to force this DOM height calculation.
>
> Please review this code and give some inputs about what can be done
> better. It needs a little of clean up, maybe move some lines to
> gtkwebview.[ch] and delete my debug prints (I left them there to help
> whoever wants to tweak the patch).
>
> If nobody answer, I will just commit this by the end of the week. If you
> want to review but don't have time this week, please let me know.
>
> --
> Masca
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?
>
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> https://pidgin.im/cgi-bin/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/devel/attachments/20150618/04fe8021/attachment.html>


More information about the Devel mailing list