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 108124 - Many applets need transparent background
Many applets need transparent background
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: general
git master
Other All
: High normal
: 2.10
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 73276 81727 100601 108841 113733 113780 113782 113997 119241 122514 141722 153278 162662 (view as bug list)
Depends on: 107146 157303
Blocks:
 
 
Reported: 2003-03-11 20:24 UTC by Loban Rahman
Modified: 2005-01-23 22:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Loban Rahman 2003-03-11 20:24:01 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.
Comment 1 Kevin Vandersloot 2003-03-12 00:40:04 UTC
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?
Comment 2 Loban Rahman 2003-03-12 22:16:25 UTC
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.
Comment 3 Kevin Vandersloot 2003-03-13 03:43:00 UTC
Loban: it would be nice if you posted a patch for me to review.
Comment 4 Kevin Vandersloot 2003-03-20 16:13:54 UTC
*** Bug 73276 has been marked as a duplicate of this bug. ***
Comment 5 Kevin Vandersloot 2003-03-20 16:14:07 UTC
*** Bug 108841 has been marked as a duplicate of this bug. ***
Comment 6 Kevin Vandersloot 2003-03-20 16:15:05 UTC
Changing the title to relflect that many applets need this change
Comment 7 Kevin Vandersloot 2003-03-28 01:12:12 UTC
*** Bug 81727 has been marked as a duplicate of this bug. ***
Comment 8 Kevin Vandersloot 2003-03-28 15:53:30 UTC
CC'ing the panel maintainer.

Mark: Does the panel support this now? It would be really cool to fix
this issue for 2.4.
Comment 9 Loban Rahman 2003-04-03 04:38:15 UTC
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.
Comment 10 Loban Rahman 2003-04-03 08:31:20 UTC
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.
Comment 11 Kevin Vandersloot 2003-04-03 16:04:29 UTC
Marking it a depenency of the gnome-panel bug. I really hope we can
get this fixed for 2.4.
Comment 12 Kevin Vandersloot 2003-04-25 03:39:09 UTC
*** Bug 100601 has been marked as a duplicate of this bug. ***
Comment 13 Kevin Vandersloot 2003-05-26 13:25:55 UTC
*** Bug 113733 has been marked as a duplicate of this bug. ***
Comment 14 Kevin Vandersloot 2003-05-26 23:42:20 UTC
*** Bug 113782 has been marked as a duplicate of this bug. ***
Comment 15 Kevin Vandersloot 2003-05-26 23:43:49 UTC
*** Bug 113780 has been marked as a duplicate of this bug. ***
Comment 16 Kevin Vandersloot 2003-05-31 02:14:28 UTC
*** Bug 113997 has been marked as a duplicate of this bug. ***
Comment 17 Kevin Vandersloot 2003-08-24 13:37:45 UTC
*** Bug 119241 has been marked as a duplicate of this bug. ***
Comment 18 Kevin Vandersloot 2003-09-18 21:35:54 UTC
*** Bug 122514 has been marked as a duplicate of this bug. ***
Comment 19 Kjartan Maraas 2003-10-26 12:00:09 UTC
Mark, maybe this needs to be documented on the panel-applet library side?
Comment 20 Kevin Vandersloot 2004-05-16 13:47:54 UTC
*** Bug 141722 has been marked as a duplicate of this bug. ***
Comment 21 Michiel Sikkes 2004-09-23 19:45:43 UTC
What is the news on this bug, is anyone still working on it? Did anyone already
find a solution or the actual problem?
Comment 22 Michiel Sikkes 2004-09-24 15:13:22 UTC
*** Bug 153278 has been marked as a duplicate of this bug. ***
Comment 23 Danielle Madeley 2004-10-30 09:12:07 UTC
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!
Comment 24 Sebastien Bacher 2004-10-30 09:54:23 UTC
That would be really nice to get for 2.10, I'll try to dig a bit on this soon
Comment 25 James Henstridge 2004-11-04 02:40:29 UTC
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;
	}
}
Comment 26 Danielle Madeley 2004-11-04 06:48:41 UTC
I really want to get this fixed for 2.10.
Comment 27 Danielle Madeley 2005-01-03 18:01:28 UTC
Most applets should be done. People should point out ones that aren't.
Comment 28 Christoffer Olsen 2005-01-04 00:53:27 UTC
*** Bug 162662 has been marked as a duplicate of this bug. ***
Comment 29 Luis Villa 2005-01-23 22:01:17 UTC
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 :)