# HG changeset patch # User Eric Warmenhoven # Date 981015180 0 # Node ID d113c7e2c5f1f33d84cd1381533faaed7aa0187b # Parent 637592eb8b244833f935e717e4bb86667985e121 [gaim-migrate @ 1465] it used to be so fun toggling them on and off that i just had to add it back. committer: Tailor Script diff -r 637592eb8b24 -r d113c7e2c5f1 src/conversation.c --- a/src/conversation.c Thu Feb 01 02:34:36 2001 +0000 +++ b/src/conversation.c Thu Feb 01 08:13:00 2001 +0000 @@ -470,6 +470,8 @@ gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); close_callback(c->window, c); } + } else if ((event->keyval == GDK_F2) && (general_options & OPT_GEN_F2_TOGGLES)) { + gtk_imhtml_show_comments(GTK_IMHTML(c->text), !GTK_IMHTML(c->text)->comments); } else if (event->keyval == GDK_Return) { if ((event->state & GDK_CONTROL_MASK) && (general_options & OPT_GEN_CTL_ENTER)) { gtk_signal_emit_by_name(GTK_OBJECT(entry), "activate", c); diff -r 637592eb8b24 -r d113c7e2c5f1 src/gaim.h --- a/src/gaim.h Thu Feb 01 02:34:36 2001 +0000 +++ b/src/gaim.h Thu Feb 01 08:13:00 2001 +0000 @@ -465,6 +465,7 @@ #define OPT_GEN_AUTO_AWAY 0x00800000 #define OPT_GEN_ESC_CAN_CLOSE 0x01000000 #define OPT_GEN_CTL_ENTER 0x02000000 +#define OPT_GEN_F2_TOGGLES 0x04000000 extern int display_options; #define OPT_DISP_SHOW_TIME 0x00000001 diff -r 637592eb8b24 -r d113c7e2c5f1 src/prefs.c --- a/src/prefs.c Thu Feb 01 02:34:36 2001 +0000 +++ b/src/prefs.c Thu Feb 01 08:13:00 2001 +0000 @@ -245,6 +245,7 @@ gaim_button(_("Escape closes window"), &general_options, OPT_GEN_ESC_CAN_CLOSE, box); gaim_button(_("Control-{B/I/U/S} inserts HTML tags"), &general_options, OPT_GEN_CTL_CHARS, box); gaim_button(_("Control-(number) inserts smileys"), &general_options, OPT_GEN_CTL_SMILEYS, box); + gaim_button(_("F2 toggles timestamp display"), &general_options, OPT_GEN_F2_TOGGLES, box); sep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(box), sep, FALSE, FALSE, 5);