# HG changeset patch # User Daniel Atallah # Date 1187065952 0 # Node ID d5e76ad4b36593de58c035759c784c56b81459d4 # Parent 428562735971abdcd649aeaf08ba5b7f0687eba5 Use gtk's functionality to keep window on top. Think this fixes #1743 diff -r 428562735971 -r d5e76ad4b365 pidgin/plugins/win32/winprefs/winprefs.c --- 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) {