GNOME Bugzilla – Bug 108124
Many applets need transparent background
Last modified: 2005-01-23 22:01:17 UTC
It does not have a fully transparent background. If you change the panel background to a color or image, the applet still keeps it's "default" background.
Loban: if you want to be really helpful, most of the applets need to handle transparency correctly (notably geyes, battstat, gweather). If you can figure out how to do it properly for sticky-notes, could you look at implementing it for other applets?
Sure thing! There are quite a few gnome-applet bugs I've been meaning to squash - this especially. Should I just commit the changes or submit patches to all of them? I ask because even though I can commit, I can't seem to modify bugs in bugzilla for anything besides stickynotes.
Loban: it would be nice if you posted a patch for me to review.
*** Bug 73276 has been marked as a duplicate of this bug. ***
*** Bug 108841 has been marked as a duplicate of this bug. ***
Changing the title to relflect that many applets need this change
*** Bug 81727 has been marked as a duplicate of this bug. ***
CC'ing the panel maintainer. Mark: Does the panel support this now? It would be really cool to fix this issue for 2.4.
I spent some time on this. It seems that the panel DOES support this now. I couldn't find much documentation, so I'm not yet fully versed on how it works. I should have some code supporting this in sticky notes soon. Once it works, we can use it as a template for all other applets.
Can't figure out why it's not working. It seems I should be using gdk_window_set_back_pixmap(), but it does not work.
Marking it a depenency of the gnome-panel bug. I really hope we can get this fixed for 2.4.
*** Bug 100601 has been marked as a duplicate of this bug. ***
*** Bug 113733 has been marked as a duplicate of this bug. ***
*** Bug 113782 has been marked as a duplicate of this bug. ***
*** Bug 113780 has been marked as a duplicate of this bug. ***
*** Bug 113997 has been marked as a duplicate of this bug. ***
*** Bug 119241 has been marked as a duplicate of this bug. ***
*** Bug 122514 has been marked as a duplicate of this bug. ***
Mark, maybe this needs to be documented on the panel-applet library side?
*** Bug 141722 has been marked as a duplicate of this bug. ***
What is the news on this bug, is anyone still working on it? Did anyone already find a solution or the actual problem?
*** Bug 153278 has been marked as a duplicate of this bug. ***
This bug appears to have managed to get lost, Loban appears to have vanished. Reassigning to gnome-applet-maint. If anyone wants to work on this, that would be great!
That would be really nice to get for 2.10, I'll try to dig a bit on this soon
With the following code, I got one of the applets to handle all background types fine (although it only handled pixmap based backgrounds properly with the patch on bug 157303 applied): static void trash_applet_change_background (PanelApplet *panel_applet, PanelAppletBackgroundType type, GdkColor *colour, GdkPixmap *pixmap) { TrashApplet *applet = TRASH_APPLET (panel_applet); GtkRcStyle *rc_style; GtkStyle *style; /* reset style */ gtk_widget_set_style (GTK_WIDGET (applet), NULL); rc_style = gtk_rc_style_new (); gtk_widget_modify_style (GTK_WIDGET (applet), rc_style); g_object_unref (rc_style); switch (type) { case PANEL_NO_BACKGROUND: break; case PANEL_COLOR_BACKGROUND: gtk_widget_modify_bg (GTK_WIDGET (applet), GTK_STATE_NORMAL, colour); break; case PANEL_PIXMAP_BACKGROUND: style = gtk_style_copy (GTK_WIDGET (applet)->style); if (style->bg_pixmap[GTK_STATE_NORMAL]) g_object_unref (style->bg_pixmap[GTK_STATE_NORMAL]); style->bg_pixmap[GTK_STATE_NORMAL] = g_object_ref (pixmap); gtk_widget_set_style (GTK_WIDGET (applet), style); break; } }
I really want to get this fixed for 2.10.
Most applets should be done. People should point out ones that aren't.
*** Bug 162662 has been marked as a duplicate of this bug. ***
Davyd, after some thinking, I think the right thing to do is close this bug, and have people file individual bugs when they see individual applet problems. I'm going to do that; let me know if you disagree :)