GNOME Bugzilla – Bug 160926
Setting background & resizing panel has side effects on the clock applet
Last modified: 2006-01-11 20:43:05 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.
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.
Could you attach the files here? Thanks
Vincent, here is the file which I have created using GIMP.
Created attachment 35030 [details] The image file created using GIMP
Ok. I have the problem with this file too. But it works otherwise... Weird. I'll try to look at this.
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.
Arvind: did you try with the image attached? Last time I tried, I could reproduce with HEAD.
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
Created attachment 35531 [details] test.png
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.
okay, any png which is an RGBA does not show the problem, it shows up with only RGB ones. attaching test2.png
Created attachment 35533 [details] RGBA png
adding owen in CC
Not going to have time to look at this, sorry.
Might be related to bug #321680.
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.
*** Bug 321680 has been marked as a duplicate of this bug. ***
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.