After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 160926 - Setting background & resizing panel has side effects on the clock applet
Setting background & resizing panel has side effects on the clock applet
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: clock
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 321680 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-10 06:54 UTC by Raj
Modified: 2006-01-11 20:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
The image file created using GIMP (159 bytes, image/png)
2004-12-20 04:04 UTC, shakti
Details
test.png (815 bytes, image/png)
2005-01-06 08:19 UTC, Arvind S N
Details
RGBA png (101 bytes, image/png)
2005-01-06 08:45 UTC, Arvind S N
Details

Description Raj 2004-12-10 06:54:32 UTC
Running Gnome-2.9 with 24-bit 1024x768 resolution.
Top panel's size 24.

- Right click on top panel.
- Choose properties.
- Set a background image.
- Increase & decrease the size of the panel.

the clock applet display is not rendered properly.
Comment 1 shakti 2004-12-14 05:35:11 UTC
I saw it is happening only when the user creates a png file of his own (using
GIMP etc). I tried with the existing png files (inside share/pixmaps/ dir) and
it never happened. It renders properly.

Needs to figure out the problem more.
Comment 2 Vincent Untz 2004-12-18 12:10:07 UTC
Could you attach the files here?

Thanks
Comment 3 shakti 2004-12-20 04:02:54 UTC
Vincent, here is the file which I have created using GIMP.
Comment 4 shakti 2004-12-20 04:04:32 UTC
Created attachment 35030 [details]
The image file created using GIMP
Comment 5 Vincent Untz 2004-12-22 00:07:33 UTC
Ok. I have the problem with this file too. But it works otherwise... Weird. I'll
try to look at this.
Comment 6 Arvind S N 2005-01-06 06:30:12 UTC
shakti: before the background code was changed this bug was simulatable. the
applet_change_background () callback was not getting called or something
similar. with the recent code changes to background stuff this bug is not
simulatable. Leaving it in needinfo state, kindly confirm that it is fixed and
close it. Re-open if you are still seeing it with the latest head code.
Comment 7 Vincent Untz 2005-01-06 07:17:53 UTC
Arvind: did you try with the image attached? Last time I tried, I could
reproduce with HEAD.
Comment 8 Arvind S N 2005-01-06 08:17:52 UTC
Vincent, I created a test.png myself using gimp. Attaching that in a moment

But some weird observataions

With test.png 

a) set panel background to none
b) add a clock applet (c1)
c) change the background to test.png
d) add another clock applet (c2)

Now increase the panel size, observe that c1 seems corrupted but not c2

With shakti's png with and above steps  both c1 and c2 get corrupted
Comment 9 Arvind S N 2005-01-06 08:19:14 UTC
Created attachment 35531 [details]
test.png
Comment 10 Vincent Untz 2005-01-06 08:28:41 UTC
Arvind: so what you're telling me is that you're better at grokking the GIMP
than shakti :-)

There's definitely a bug somewhere. I don't have time to look at this now, though.
Comment 11 Arvind S N 2005-01-06 08:44:15 UTC
okay, any png which is an RGBA does not show the problem, it shows up with only
RGB ones. attaching test2.png 
Comment 12 Arvind S N 2005-01-06 08:45:41 UTC
Created attachment 35533 [details]
RGBA png
Comment 13 Arvind S N 2005-01-06 08:46:45 UTC
adding owen in CC
Comment 14 Owen Taylor 2005-01-06 15:15:48 UTC
Not going to have time to look at this, sorry.
Comment 15 Vincent Untz 2005-12-30 11:21:25 UTC
Might be related to bug #321680.
Comment 16 Vincent Untz 2006-01-09 20:03:26 UTC
The resizing issue should be fixed in HEAD (we were not always notifying when the background changed, for example when we change size).

Now, we have an issue with the RGBA png.
Comment 17 Vincent Untz 2006-01-09 21:24:52 UTC
*** Bug 321680 has been marked as a duplicate of this bug. ***
Comment 18 Vincent Untz 2006-01-11 20:43:05 UTC
2006-01-11  Vincent Untz  <vuntz@gnome.org>

	* Makefile.am: remove panel-gdk-pixbuf-extensions.[ch]
	* panel-gdk-pixbuf-extensions.[ch]: kill
	* panel-background-monitor.c:
	(panel_background_monitor_tile_background): use cairo and
	panel_util_cairo_rgbdata_to_pixbuf() to tile the image
	* panel-background.c: (composite_image_onto_desktop): use cairo
	(load_background_file): add a FIXME, update alpha so we know if the
	image has alpha
	* panel-util.[ch]: (panel_util_cairo_rgbdata_to_pixbuf): new, to
	convert data created by cairo to a GdkPixbuf
	Fix bug #160926.