changeset 1455:d113c7e2c5f1

[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 <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 01 Feb 2001 08:13:00 +0000
parents 637592eb8b24
children 6650776468b3
files src/conversation.c src/gaim.h src/prefs.c
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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
--- 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);