Mercurial > pidgin
comparison console/libgnt/gntmain.c @ 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 | e1cfdb131c62 |
children | 70623f0d5cdc |
comparison
equal
deleted
inserted
replaced
14759:f7b0c1a4b9a7 | 14760:3d1be4577fa9 |
---|---|
269 /* This is the current window in focus */ | 269 /* This is the current window in focus */ |
270 color = GNT_COLOR_TITLE; | 270 color = GNT_COLOR_TITLE; |
271 GNT_WIDGET_UNSET_FLAGS(w, GNT_WIDGET_URGENT); | 271 GNT_WIDGET_UNSET_FLAGS(w, GNT_WIDGET_URGENT); |
272 if (wm.window_update) { | 272 if (wm.window_update) { |
273 GntNode *node = g_hash_table_lookup(nodes, w); | 273 GntNode *node = g_hash_table_lookup(nodes, w); |
274 if (node) | 274 wm.window_update(node ? node->panel : NULL, w); |
275 wm.window_update(node->panel, w); | |
276 } | 275 } |
277 } else if (GNT_WIDGET_IS_FLAG_SET(w, GNT_WIDGET_URGENT)) { | 276 } else if (GNT_WIDGET_IS_FLAG_SET(w, GNT_WIDGET_URGENT)) { |
278 /* This is a window with the URGENT hint set */ | 277 /* This is a window with the URGENT hint set */ |
279 color = GNT_COLOR_URGENT; | 278 color = GNT_COLOR_URGENT; |
280 } else { | 279 } else { |
1316 | 1315 |
1317 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_URGENT); | 1316 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_URGENT); |
1318 | 1317 |
1319 if (wm.window_update) { | 1318 if (wm.window_update) { |
1320 GntNode *node = g_hash_table_lookup(nodes, widget); | 1319 GntNode *node = g_hash_table_lookup(nodes, widget); |
1321 wm.window_update(node->panel, widget); | 1320 wm.window_update(node ? node->panel : NULL, widget); |
1322 } | 1321 } |
1323 | 1322 |
1324 draw_taskbar(FALSE); | 1323 draw_taskbar(FALSE); |
1325 } | 1324 } |
1326 | 1325 |
1380 gnt_box_set_title(GNT_BOX(widget), text); | 1379 gnt_box_set_title(GNT_BOX(widget), text); |
1381 gnt_widget_draw(widget); | 1380 gnt_widget_draw(widget); |
1382 | 1381 |
1383 if (wm.window_update) { | 1382 if (wm.window_update) { |
1384 GntNode *node = g_hash_table_lookup(nodes, widget); | 1383 GntNode *node = g_hash_table_lookup(nodes, widget); |
1385 wm.window_update(node->panel, widget); | 1384 wm.window_update(node ? node->panel : NULL, widget); |
1386 } | 1385 } |
1387 | 1386 |
1388 draw_taskbar(FALSE); | 1387 draw_taskbar(FALSE); |
1389 } | 1388 } |
1390 | 1389 |