Backgrounds support in htmltextview

Since revision 967 htmltextview has this kewl feature:

screenshot

To test it, you have to enable the /eval plugin and type in this:

/eval import gtk
pixbuf = gtk.gdk.pixbuf_new_from_file(”/path/to/image.jpg”)
conversation.ui.textview.set_background(pixbuf)

..And what does this mean? Background sharing support! And no, don’t think that we were losing our time with this. The idea was to add background image support with CSS styles in htmltextview, to be a step nearer to adium styles :D.

We have been working in this for weeks, without getting “decent” solutions. [technical]The ScrolledWindow was scrolling the background too, in an ugly way[/technical]. We’ve tried lots of things, even asked the pygtk mailing list — without getting replies of course. (TODO: reply to myself with the solution)

One day, alencool read that mail, tried to find the solution with cairo, and came up with a cool transparent window+textview that requires compiz. The problem was that we had to make all the window transparent to get it working, something quite impossible. But he introduced a new idea, [technical]connecting the ScrolledWindow expose-event to the child htmltextview queue_draw[/technical]. Yesterday I tried it with one of my old solutions, and surprise, it worked fine.

“Background sharing” is “a protocol feature that extends file transfer to send images and set them automatically as backgrounds”. That means that WLM can share the background you choose for the window with your contacts. Pretty stupid feature, but people like it.

This is just the first step, and the hardest one (because we thought it was impossible). Now roger should update his FTContext to identify better background sharing file transfers, and someone else code the GUI part (an icon in the toolbar).

And yes, we can add background images to the user list too. Who said that qt is better?

Tags: , ,

8 Responses to “Backgrounds support in htmltextview”

  1. Ahmed Kachkach Says:

    Ah Yeaaaah :-D

    That what this transparent windows’s video means :-D !

    -_-” And I was Joking about that …

    Keep the good Work DX !

    P.S.: Use torture if you’re in need , but just tell roger that we NEED his Youtube extra plugin :’( …

  2. dx Says:

    P.S.: Use torture if you’re in need , but just tell roger that we NEED his Youtube extra plugin :’( …

    ..i think we need more the file transfer sending feature

  3. Xallow Says:

    Wow.. you’re working great! You have done a lot of improvements in a short time and we, the users, really appreciate that.

    I thought I would never see the background sharing support implemented, but I just realise I was wrong XD!

  4. JoinTheHell Says:

    Hey :]
    I’d like to see that thing that needs compiz - maybe it works with the composite extension from xfce too :o

  5. Ahmed Kachkach Says:

    Yeah :-s !

    Hey Dx , i’m experiencing a big Issue when connecting , i just CAN’T connect , i always have an error message .

    I’m sending a screen on the forum !

  6. javi31787 Says:

    Me encanta emesene, es el mejor cliente para Linux (y para windows tambien prefiero emesene:) ) ánimo, me encanta tu programa

  7. Meryovi Says:

    You guys rock…

    I hope emesene 1.0 gets included in all gnomish distros. :D

  8. dx Says:

    *just saw the comment moderation queue*

    @jointhehell: the current implementation doesn’t require compiz (it’s quite complex to remove the background on *every* widget..)

Leave a Reply