hsgg / lxpanel

Temporary branch of lxpanel fixes
lxde.org
Other
1 stars 0 forks source link

add a bit more cairo drawing #1

Open galtgendo opened 12 years ago

galtgendo commented 12 years ago

Let's call this a second part of my patch. This one simplifies panel background drawing a bit and fixes a subtle bug (try setting alpha to 255 - it gets saved as 254 without this fix).

galtgendo commented 12 years ago

The patch is in the same place the first one - on sourcefoge.

galtgendo commented 12 years ago

Unfortunately, it seems it's as far as it can go in gtk2. For gtk3 some of the functions will need to be significantly rewritten. I'm not talking simply about expose-event -> draw, panel_determine_background works on GdkPixmaps for the sake of gdk_window_set_back_pixmap - in gtk3, the closest to it is gdk_window_set_background_pattern, which takes a cairo_pattern_t. This means, that the converting will have to be done differently, to prevent going between GdkPixbuf and cairo_surface_t more than once and loosing info.