changeset 19264:d5e76ad4b365

Use gtk's functionality to keep window on top. Think this fixes #1743
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 14 Aug 2007 04:32:32 +0000
parents 428562735971
children ce892eddb8f1 8c126e388ea4
files pidgin/plugins/win32/winprefs/winprefs.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/win32/winprefs/winprefs.c	Tue Aug 14 02:23:30 2007 +0000
+++ b/pidgin/plugins/win32/winprefs/winprefs.c	Tue Aug 14 04:32:32 2007 +0000
@@ -92,11 +92,7 @@
 	if(!blist)
 		return;
 
-	if(val)
-		SetWindowPos(GDK_WINDOW_HWND(blist->window), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
-	else
-		SetWindowPos(GDK_WINDOW_HWND(blist->window), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
-
+	gtk_window_set_keep_above(GTK_WINDOW(PIDGIN_BLIST(purple_get_blist())->window), val);
 }
 
 static void blist_dock_cb(gboolean val) {