# HG changeset patch # User Sadrul Habib Chowdhury # Date 1166143256 0 # Node ID 7d682fc9098fd64e2b3db1ecb93ce1b5d5c5cdc5 # Parent ffec45ff82d08e8e9419b879cda0199d324a94e7 [gaim-migrate @ 18000] Clicking the first window on the taskbar didn't give it focus. Fix that. committer: Tailor Script diff -r ffec45ff82d0 -r 7d682fc9098f console/libgnt/gntbindable.c --- 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; } diff -r ffec45ff82d0 -r 7d682fc9098f console/libgnt/gntwm.c --- 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;