Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57755 - xmms patch -- hide on taskbar if xmm-status-plugin used
Summary: xmms patch -- hide on taskbar if xmm-status-plugin used
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-07-20 10:44 UTC by Rob Kruus
Modified: 2004-09-30 15:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to src/main.c (xmms.main.patch,499 bytes, patch)
2004-07-20 10:45 UTC, Rob Kruus
Details | Diff
Update ebuild (one liner actually) (xmms-1.2.10-r5.ebuild,5.29 KB, text/plain)
2004-07-20 10:46 UTC, Rob Kruus
Details
Updated patch (xmms.main.patch,2.21 KB, patch)
2004-07-22 06:36 UTC, Rob Kruus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Kruus 2004-07-20 10:44:42 UTC
With the current version xmms stays displayed on the task bar when the xmms-status-plugin is used -- kind of defeats the purpose of using the xmms-status-plugin. (unless everyone install kstart).
Seems to work here, limited testing.
Comment 1 Rob Kruus 2004-07-20 10:45:54 UTC
Created attachment 35827 [details, diff]
patch to src/main.c

Needs a better name
Comment 2 Rob Kruus 2004-07-20 10:46:45 UTC
Created attachment 35828 [details]
Update ebuild (one liner actually)

Added epatch line
Comment 3 Rob Kruus 2004-07-20 11:12:48 UTC
messes the relative positioning of the windows (main/playlist/eq) a bit when toggling
--look into that.
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-20 17:38:11 UTC
Rob, any luck looking into the relative position problem?
Comment 5 Rob Kruus 2004-07-21 07:57:17 UTC
Not yet.  Basically, the main window (with the patch) doesn't remember the old position and gets relocated by the autoplacement of my WM (xfwm) where as the eq and playlists still remember their postitions -- they aren't using the gtk_widget_close/hide.... yet.  I guess it also ruins the ability to get XMMS pop up in a set location on your desktop.
I'll keep at it and let you know -- I'm definitly not at gtk programer (really my first look at it).
Ideally, it would be good to be able to pass a window manager hint to remove from the task bar but AFAIK it is little more difficult with GTK++ (vs gtk2).
I've taken a quick look at the sylpheed-claws tray-icon plugin, but they have a completely different setup for their windows and window properties.
Comment 6 Rob Kruus 2004-07-22 06:36:09 UTC
Created attachment 35943 [details, diff]
Updated patch

See how this works on with other wm....
Seem to work fine here, with or without the plugin activated.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-22 12:24:57 UTC
hmm... I'm scared about the whole hide section there... there's probably a reason they didn't do it that way... I'll take a look at it, but I'd like to get some feedback from the xmms devs themselves... do you think you could open up an upstream bug for this and let me know the URL?  Or have you talked about this on an xmms list which is archived somewhere?
Comment 8 Rob Kruus 2004-07-23 08:03:01 UTC
Nope, just something I looked into 'cause it bugged me.  I'll file an upstream bug and keep you posted.
It is actually code adapted from their playlist window and equalizer window (they both use the similar code -- using the widget show/hide).
From what I undestand of the original code, it was a fake hide that that they did by resizing the window to 0x0, unless the window manager decorations were turned on -- where they used the widget_hide.
It could also use some testing I guess on other window managers -- maybe a system with only gtk+1 as well.
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-01 01:15:34 UTC
did you open a bug with this info upstream at bugs.xmms.org?  Can you please tell me the bug URL... thanks.
Comment 10 Rob Kruus 2004-09-01 08:59:08 UTC
Sorry for the delay -- bug #1887
http://bugs.xmms.org/show_bug.cgi?id=1887
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-30 15:30:41 UTC
in forthcoming -r6.