changeset 24217:6593855e1ed9

Allow the message notification plugin to flash windows on win32.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 02 Oct 2008 01:29:53 +0000
parents a61c017d3a99
children 9c8d73b0f27c
files pidgin/plugins/notify.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/notify.c	Thu Oct 02 01:28:52 2008 +0000
+++ b/pidgin/plugins/notify.c	Thu Oct 02 01:29:53 2008 +0000
@@ -557,9 +557,7 @@
 static void
 handle_urgent(PidginWindow *win, gboolean set)
 {
-#ifndef _WIN32
 	pidgin_set_urgent(GTK_WINDOW(win->window), set);
-#endif
 }
 
 static void
@@ -767,12 +765,15 @@
 
 	/* Urgent method button */
 	toggle = gtk_check_button_new_with_mnemonic(_("Set window manager \"_URGENT\" hint"));
+#else
+	/* TODO: When we're not string frozen, mark for translation */
+	toggle = gtk_check_button_new_with_mnemonic("_Flash window");
+#endif
 	gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0);
 	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle),
 	                             purple_prefs_get_bool("/plugins/gtk/X11/notify/method_urgent"));
 	g_signal_connect(G_OBJECT(toggle), "toggled",
 	                 G_CALLBACK(method_toggle_cb), "method_urgent");
-#endif
 
 	/* Raise window method button */
 	toggle = gtk_check_button_new_with_mnemonic(_("R_aise conversation window"));