changeset 3948:40258b6b5ecf

[gaim-migrate @ 4127] systray functionality change committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Mon, 11 Nov 2002 21:54:53 +0000
parents 7cb474d8d613
children ee562d745d07
files src/aim.c src/buddy.c
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/aim.c	Mon Nov 11 21:51:45 2002 +0000
+++ b/src/aim.c	Mon Nov 11 21:54:53 2002 +0000
@@ -339,6 +339,11 @@
 	gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(dologin), mainwindow);
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
 
+#ifdef _WIN32
+	/* Register newly created window with systray module */
+	wgaim_created_loginwin(GTK_WIDGET(mainwindow));
+#endif
+
 	/* Now grab the focus that we need */
 	if (aim_users) {
 		struct aim_user *c = (struct aim_user *)aim_users->data;
--- a/src/buddy.c	Mon Nov 11 21:51:45 2002 +0000
+++ b/src/buddy.c	Mon Nov 11 21:54:53 2002 +0000
@@ -2811,10 +2811,8 @@
 				       GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 
 #ifdef _WIN32
-	/* Set filter to enable win32 systray minimization */
-	gdk_window_add_filter (GTK_WIDGET(blist)->window,
-			       wgaim_window_filter,
-			       NULL);
+	/* Register newly created window with systray module */
+	wgaim_created_blistwin(GTK_WIDGET(blist));
 #endif
 }