changeset 14760:3d1be4577fa9

[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 <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 18 Oct 2006 04:39:59 +0000
parents f7b0c1a4b9a7
children 90459b6e8f1f
files console/libgnt/gntmain.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);