changeset 5200:721a61670540

[gaim-migrate @ 5566] hyphenated pointed out that it's annoying to have the buddy list steal keyboard focus when it raises on events. this fixes that. thanks, hyphenated committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 23 Apr 2003 13:24:34 +0000
parents a2f2b12f5557
children b81e3c496598
files src/buddy.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Wed Apr 23 13:00:21 2003 +0000
+++ b/src/buddy.c	Wed Apr 23 13:24:34 2003 +0000
@@ -1502,8 +1502,11 @@
 
 				gtk_tree_store_insert_after(gtkblist->treemodel, &iter, &groupiter, oldersibling ? &oldersiblingiter : NULL);
 
-				if (blist_options & OPT_BLIST_POPUP)
-					gtk_window_present(GTK_WINDOW(gtkblist->window));
+				if (blist_options & OPT_BLIST_POPUP) {
+					gtk_widget_show(gtkblist->window);
+					gtk_window_deiconify(GTK_WINDOW(gtkblist->window));
+					gdk_window_raise(gtkblist->window->window);
+				}
 
 			}
 		}
@@ -1590,8 +1593,11 @@
 				   -1);
 
 		if (blist_options & OPT_BLIST_POPUP &&
-				((struct buddy *)node)->present == GAIM_BUDDY_SIGNING_OFF)
-			gtk_window_present(GTK_WINDOW(gtkblist->window));
+				((struct buddy *)node)->present == GAIM_BUDDY_SIGNING_OFF) {
+			gtk_widget_show(gtkblist->window);
+			gtk_window_deiconify(GTK_WINDOW(gtkblist->window));
+			gdk_window_raise(gtkblist->window->window);
+		}
 
 		g_free(mark);
 		if (idle)