# HG changeset patch # User Sadrul Habib Chowdhury # Date 1161146399 0 # Node ID 3d1be4577fa986f9f41c13abeb6c1442c605e49f # Parent f7b0c1a4b9a7b69c7f6e8cc92a488cd4a2c18b26 [gaim-migrate @ 17517] Patch from Richard Nelson (wabz). This is not necessary right now, but it's probably going to be necessary for workspaces (wabz is doing a WM for that). committer: Tailor Script diff -r f7b0c1a4b9a7 -r 3d1be4577fa9 console/libgnt/gntmain.c --- a/console/libgnt/gntmain.c Wed Oct 18 04:21:10 2006 +0000 +++ b/console/libgnt/gntmain.c Wed Oct 18 04:39:59 2006 +0000 @@ -271,8 +271,7 @@ GNT_WIDGET_UNSET_FLAGS(w, GNT_WIDGET_URGENT); if (wm.window_update) { GntNode *node = g_hash_table_lookup(nodes, w); - if (node) - wm.window_update(node->panel, w); + wm.window_update(node ? node->panel : NULL, w); } } else if (GNT_WIDGET_IS_FLAG_SET(w, GNT_WIDGET_URGENT)) { /* This is a window with the URGENT hint set */ @@ -1318,7 +1317,7 @@ if (wm.window_update) { GntNode *node = g_hash_table_lookup(nodes, widget); - wm.window_update(node->panel, widget); + wm.window_update(node ? node->panel : NULL, widget); } draw_taskbar(FALSE); @@ -1382,7 +1381,7 @@ if (wm.window_update) { GntNode *node = g_hash_table_lookup(nodes, widget); - wm.window_update(node->panel, widget); + wm.window_update(node ? node->panel : NULL, widget); } draw_taskbar(FALSE);