[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-devel] Small patch for the task-manager
From: |
Jacob Ilsø Christensen |
Subject: |
Re: [Pan-devel] Small patch for the task-manager |
Date: |
18 Apr 2003 09:27:44 +0200 |
On Fri, 2003-04-18 at 09:00, Evan Martin wrote:
> On Thu, Apr 17, 2003 at 10:13:55AM +0200, Jacob Ils? Christensen wrote:
> > I have attached a small patch (against current cvs) which closes the
> > task-manager dialog when pressing Escape. Is that something people want
> > and if yes, also in other dialogs?
>
> It's a good idea, but I think your patch goes about it the wrong way.
> GTK has built-in support for Escape closing dialogs.
>
> I don't know the Pan code in particular, but pressing escape on a
> GtkDialog emits the "close" signal, which synthesizes a delete event
> (which is like clicking the window manager close button), which then
> (I think?) causes the dialog to emit the "response" signal with a type of
> GTK_RESPONSE_DELETE_EVENT. You should be able to handle that without
> resorting to handling keystrokes.
Yes, that would be a nicer way to do it. Just looked through the code
and the task manager is a GtkWindow and not a GtkDialog so I guess the
above does not work. Any way to do it with a GtkWindow?
/Jacob
--
Jacob Ilsø Christensen <address@hidden>