On 9/10/06, Chris Vetter <[EMAIL PROTECTED]> wrote:
On 2006-09-10 18:12:25 +0200 Yen-Ju Chen <[EMAIL PROTECTED]> wrote:
[...]
>> Look at Windows. Click on the icon and a drop-down will open that
>> let's you select the one you want.
> That is a good idea. But from xwindow side,
> it is hard to know which window is NSMenu, which one is NSPanel,
> and which one is NSWindow (main window).
> So it is probably the only way I can do it, but it won't be pretty
> though.
> I will try it and see.

What I'm thinking about would be to stick a menu on the icon (in the
dock). Whenever another application instance is launched, you add an
entry for it in the menu -- but the menu would only pop open when
there's more than one entry 'in' it -- wouldn't make sense to pop it
open when there's only one entry to select from.
If there's only one entry, open that application directly, otherwise
pop open the menu.

 I just add a contextual menu on the GNUstep icon as
 workspace switcher.
 By default, click on it also open GWorkspace if any,
 or xterm as backup.
 I think we need to have a short discussion about the behavior.
 At beginning, I implement it as left-click for default action
 and right-click for contextual menu.
 As you suggest, the left-click will show menu if there is
 more than one window, or show window if there is only one.
 I think it is not a bad idea, but should we keep the
 right-click contextual menu ?
 (Frankly, it is easier to implement the menu with right-click
 because it is the default behavior of NSView. :)
 And if we have the icon menu  for multiple windows,
 the workspace has to be appended on menu item to remind
 users which window is on which workspace.
 I think it will look not pretty in general.

 The other options is to display icons only in current workspace.
 Actually a lot of taskbar/dock implement in this way,
 such as Gnome.
 Therefore, you have to switch workspace first to see the icons.
 In short, it is workspace-dependent dock.
 I wonder whether peopel will get confused about
 where their windows are ?

 Any thought ?

 Yen-Ju



--
Chris



_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss


_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à