Mercurial > pidgin
diff finch/libgnt/gntws.c @ 18223:5023ad94ebc9
Notify a window when it loses focus because another window was moved to
the workspace.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 22 Jun 2007 05:40:00 +0000 |
parents | 34e011c8ed2b |
children | 93c5c785a811 |
line wrap: on
line diff
--- a/finch/libgnt/gntws.c Thu Jun 21 21:32:13 2007 +0000 +++ b/finch/libgnt/gntws.c Fri Jun 22 05:40:00 2007 +0000 @@ -87,8 +87,12 @@ void gnt_ws_add_widget(GntWS *ws, GntWidget* wid) { + GntWidget *oldfocus; + oldfocus = ws->ordered ? ws->ordered->data : NULL; ws->list = g_list_append(ws->list, wid); ws->ordered = g_list_prepend(ws->ordered, wid); + if (oldfocus) + gnt_widget_set_focus(oldfocus, FALSE); } void gnt_ws_remove_widget(GntWS *ws, GntWidget* wid)