changeset 14805:984657c2584d

[gaim-migrate @ 17570] Add a wingaim only preference to disable the IM conv. flashing. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 23 Oct 2006 20:25:16 +0000
parents dfd272ab67e7
children a2be9307d58d
files gtk/gtkprefs.c gtk/win32/gtkwin32dep.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkprefs.c	Mon Oct 23 20:21:54 2006 +0000
+++ b/gtk/gtkprefs.c	Mon Oct 23 20:25:16 2006 +0000
@@ -851,6 +851,10 @@
 
 	gaim_gtk_prefs_checkbox(_("Use smooth-scrolling"), "/gaim/gtk/conversations/use_smooth_scrolling", vbox);
 
+#ifdef _WIN32
+	gaim_gtk_prefs_checkbox(_("F_lash window when IMs are received"), "/gaim/gtk/win32/blink_im", vbox);
+#endif
+
 	frame = gaim_gtk_create_imhtml(TRUE, &imhtml, &toolbar, NULL);
 	gtk_widget_set_name(imhtml, "gaim_gtkprefs_font_imhtml");
 	gtk_imhtml_set_whole_buffer_formatting_only(GTK_IMHTML(imhtml), TRUE);
--- a/gtk/win32/gtkwin32dep.c	Mon Oct 23 20:21:54 2006 +0000
+++ b/gtk/win32/gtkwin32dep.c	Mon Oct 23 20:25:16 2006 +0000
@@ -267,7 +267,8 @@
 gtkwgaim_conv_im_blink(GaimAccount *account, const char *who, char **message,
 		GaimConversation *conv, GaimMessageFlags flags, void *data)
 {
-	gtkwgaim_conv_blink(conv, flags);
+	if (gaim_prefs_get_bool("/gaim/gtk/win32/blink_im"))
+		gtkwgaim_conv_blink(conv, flags);
 	return FALSE;
 }
 
@@ -294,6 +295,9 @@
 
 void gtkwgaim_post_init(void) {
 
+	gaim_prefs_add_none("/gaim/gtk/win32");
+	gaim_prefs_add_bool("/gaim/gtk/win32/blink_im", TRUE);
+
 	gaim_signal_connect(gaim_gtk_conversations_get_handle(),
 		"displaying-im-msg", &gtkwin32_handle, GAIM_CALLBACK(gtkwgaim_conv_im_blink),
 		NULL);