[gaim-migrate @ 18000]

Fri, 15 Dec 2006 00:40:56 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Fri, 15 Dec 2006 00:40:56 +0000
changeset 15272
c6e322c9c9b2
parent 15271
d0fe65427f76
child 15273
a7838f939207

[gaim-migrate @ 18000]
Clicking the first window on the taskbar didn't give it focus. Fix that.

console/libgnt/gntbindable.c file | annotate | diff | comparison | revisions
console/libgnt/gntwm.c file | annotate | diff | comparison | revisions
--- a/console/libgnt/gntbindable.c	Thu Dec 14 22:25:18 2006 +0000
+++ b/console/libgnt/gntbindable.c	Fri Dec 15 00:40:56 2006 +0000
@@ -107,10 +107,7 @@
 	
 	action = g_hash_table_lookup(klass->actions, name);
 	if (action && action->u.action) {
-		if (list)
-			return action->u.action(bindable, list);
-		else
-			return action->u.action_noparam(bindable);
+		return action->u.action(bindable, list);
 	}
 	return FALSE;
 }
--- a/console/libgnt/gntwm.c	Thu Dec 14 22:25:18 2006 +0000
+++ b/console/libgnt/gntwm.c	Fri Dec 15 00:40:56 2006 +0000
@@ -300,10 +300,13 @@
 	GList *l;
 	int n;
 
-	if (!wm->ordered || !list)
+	if (!wm->ordered)
 		return TRUE;
 
-	n = GPOINTER_TO_INT(list->data);
+	if (list)
+		n = GPOINTER_TO_INT(list->data);
+	else
+		n = 0;
 	
 	w = wm->ordered->data;
 

mercurial