You are not logged in.

#1 2008-04-08 18:29:49

fed359
Member
Registered: 2007-11-21
Posts: 46

pypanel & closing to tray

Hey,
I'm having a bit of trouble with pypanel and programs that are supposed to "close to tray" such as emesene, exaile, sonata, etc. Middle clicking on the program in the pypanel taskbar (set to close the app in pypanelrc) does not minimize it to the tray and keep the program running, it destroys it. Judging by the settings in pypanelrc this looks like typical behaviour

elif button == 2:
      task.obj.destroy()

I was just wondering if there was any way to change this and make it behave the way I'd like.

Thanks.

Offline

#2 2008-04-08 19:51:23

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: pypanel & closing to tray

This is probably a dumb question, but are the preferences for the programs you're trying to minimizing set to minimize to tray on close? That what I have setup and just click the the X to minimize to tray. I'll see what middle clicking does on mine when I get home from work though.

Offline

#3 2008-04-08 20:12:49

fed359
Member
Registered: 2007-11-21
Posts: 46

Re: pypanel & closing to tray

Yes, clicking the X acts as it should and minimizes the program to the tray. It's just middle clicking that causes the problem.

Offline

#4 2008-04-09 00:56:07

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: pypanel & closing to tray

My PyPanel has the same default behavior (it's on a laptop so I'd never tried it). It doesn't look like pypanel has the functionality you're looking for though. These are the mouse button functions from the default config file

#------------------------------------------------------------------------------
# Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click - button 1
# Middle click - button 2
# Right click - button 3
# Wheel up - button 4
# Wheel down - button 5
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
#
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

Offline

#5 2008-04-09 02:43:04

fed359
Member
Registered: 2007-11-21
Posts: 46

Re: pypanel & closing to tray

Yeah, I expected that would be the case, I was just hoping someone came up with a way to get it to work. Thanks for your responses!

Offline

Board footer

Powered by FluxBB