diff options
author | Peter Williams <peterw@ximian.com> | 2001-07-26 22:53:00 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-07-26 22:53:00 +0800 |
commit | e49022b7768f937dfbe64d31bcef07beb8baf52b (patch) | |
tree | 2f9a9bd51494ff22089a3f243f0ad16bdd4a5da7 /mail/folder-browser.c | |
parent | a3dbc33cbc053d994ad9f3c2e9b08802a5184f74 (diff) | |
download | gsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.tar.gz gsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.tar.zst gsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.zip |
Make 'q' a toggle, not one-way.
2001-07-26 Peter Williams <peterw@ximian.com>
* folder-browser.c (on_key_press): Make 'q' a toggle, not
one-way.
svn path=/trunk/; revision=11425
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index f514228df0..76983955dd 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1544,10 +1544,10 @@ on_key_press (GtkWidget *widget, GdkEventKey *key, gpointer data) return TRUE; case 'q': case 'Q': - if (fb->preview_shown && fb->uicomp) + if (fb->uicomp) bonobo_ui_component_set_prop (fb->uicomp, "/commands/ViewPreview", - "state", "0", NULL); + "state", fb->preview_shown ? "0" : "1", NULL); return TRUE; } |