aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-26 22:53:00 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-26 22:53:00 +0800
commite49022b7768f937dfbe64d31bcef07beb8baf52b (patch)
tree2f9a9bd51494ff22089a3f243f0ad16bdd4a5da7 /mail
parenta3dbc33cbc053d994ad9f3c2e9b08802a5184f74 (diff)
downloadgsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.tar
gsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.tar.gz
gsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.tar.bz2
gsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.tar.lz
gsoc2013-evolution-e49022b7768f937dfbe64d31bcef07beb8baf52b.tar.xz
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')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/folder-browser.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index fbea56c2c6..d04b4e0549 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-07-26 Peter Williams <peterw@ximian.com>
+ * folder-browser.c (on_key_press): Make 'q' a toggle, not
+ one-way.
+
* message-list.etspec: Rename "Date" column to "Sent".
2001-07-25 Anna Marie Dirks <anna@ximian.com>
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;
}