dillo chat in Logroño/La Rioja/Spain
Hello. I am Diego Sáenz. I use this mail address now (I had mail problems and lost some mails, but i have read them in the list archive). I am associate of AULIR (Asociacion de Usuarios de GNU/Linux de La Rioja) a spanish LUG and will give a chat about how to wrote dillo plug-ins. I will explain a few the dillo internals too. There are not very much programers in AULIR(one of them program anjelica.sourceforge.net), but i will try to wake interest about dillo. Any advice for the chat? I will try to show a preferences plug in as example. Is the bug #695 solved somewhere? i think i will need to use it for a feature of the plug in. Diego. ps: i hoppe that this do not seem spam* *
Hi Diego! On Wed, Nov 29, 2006 at 05:44:45PM +0100, Diego . wrote:
Hello. I am Diego Sáenz. I use this mail address now (I had mail problems and lost some mails, but i have read them in the list archive). I am associate of AULIR (Asociacion de Usuarios de GNU/Linux de La Rioja) a spanish LUG and will give a chat about how to wrote dillo plug-ins. I will explain a few the dillo internals too. There are not very much programers in AULIR(one of them program anjelica.sourceforge.net), but i will try to wake interest about dillo.
Any advice for the chat?
Yes, just try to put up the example code, and directions on how to run it in a web site a couple of days before the chat, and ask your audience to try the example prior to the chat. That way they can experiment and play with what you're going to explain instead of having to grasp it in abstract. Trying to get all the details of dpi without experimenting with it beforehand can be tough.
I will try to show a preferences plug in as example. Is the bug #695 solved somewhere?
No, but I made a quick hacky patch for you! :-) It's not as clean and tested as I'd like, but OTOH it would not surprise me if it ends being a good solution. Please send some feedback on how it works.
i think i will need to use it for a feature of the plug in.
Here you are: -------------------------------------------------------------------------- diff -pru dillo/src/html.c dillo-cur/src/html.c --- dillo/src/html.c 2006-04-08 08:16:46.000000000 -0400 +++ dillo-cur/src/html.c 2006-11-29 16:00:40.000000000 -0300 @@ -3717,10 +3717,19 @@ static DwWidget *Html_input_image(DilloH DilloUrl *url = NULL; DwStyle style_attrs; const char *attrbuf; + DwTooltip *tooltip; if ((attrbuf = Html_get_attr(html, tag, tagsize, "src")) && (url = Html_url_new(html, attrbuf, NULL, 0, 0, 0, 0))) { button = a_Dw_button_new (0, FALSE); + + /* add the tooltip to the button holding the image */ + if (prefs.show_tooltip && + (attrbuf = Html_get_attr(html, tag, tagsize, "title"))) { + tooltip = a_Dw_tooltip_new_no_ref(attrbuf); + HTML_SET_TOP_ATTR(html, x_tooltip, tooltip); + } + a_Dw_page_add_widget (DW_PAGE (html->dw), button, html->stack[html->stack_top].style); gtk_signal_connect(GTK_OBJECT(button), "clicked_at", @@ -3728,6 +3737,7 @@ static DwWidget *Html_input_image(DilloH a_Dw_button_set_sensitive(DW_BUTTON(button), FALSE); /* create new image and add it to the button */ + style_attrs = *html->stack[html->stack_top].style; if ((Image = Html_add_new_image(html, tag, tagsize, &style_attrs, FALSE))) { /* By suppressing the "image_pressed" signal, the events are sent --------------------------------------------------------------------------
ps: i hoppe that this do not seem spam*
Just disable the HTML mail and spam filters will not frown on you. -- Cheers Jorge.-
participants (2)
-
Diego .
-
Jorge Arellano Cid