Re: gnome panel 2 background
- From: Alex Larsson <alexl redhat com>
- To: Chris Phelps <chicane reninet com>
- Cc: <desktop-devel-list gnome org>
- Subject: Re: gnome panel 2 background
- Date: Mon, 7 Jan 2002 09:50:05 -0500 (EST)
On 6 Jan 2002, Chris Phelps wrote:
> While working on making my PanelMenu applet blend with the background of
> it's parent panel, I came across a pretty undesirable set of
> circumstances. With the current scheme, the change_background signal
> only sends the filename of the background pixmap. That means that each
> applet has to do it's own position calculating, and then properly render
> the background image when needed (tiled, stretched, etc). The main
> problem here is when the applet is moved on the parent panel...there is
> no signal emitted, so there is not way for the applet to know that it
> should re-render it's background.
>
> My current thought is for the panel to save a pixmap of it's background
> as rendered on screen (the whole size of the panel). The child applet
> could then simply get it's coordinates and copy the section that it will
> be covering.
>
> So the question is, does anyone have a more robust scheme to deal with
> this? (keep in mind that we will probably be needing to support
> transparent panels and the like)
The idea is to have a Pixmap of the current background, and send the xid
of the pixmap and the offsets in it to the applet when the background
changes.
I have some extensive changes to PanelWidget planned which will change all
this and make it work more like normal Gtk+ widgets.
/ Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]