Mercurial > pidgin
comparison console/libgnt/gntbox.c @ 13927:9309d27d780c
[gaim-migrate @ 16447]
Pseudo-shadow effect for the windows and buttons. Uses non-ASCII
emblems for buddies in the buddy-list if locale is set to UTF.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 06 Jul 2006 17:54:46 +0000 |
parents | fdf2dbed6faa |
children | 3dbcbc5e57e1 |
comparison
equal
deleted
inserted
replaced
13926:756c3d7177d9 | 13927:9309d27d780c |
---|---|
381 /* XXX: werase first? */ | 381 /* XXX: werase first? */ |
382 | 382 |
383 for (iter = box->list; iter; iter = iter->next) | 383 for (iter = box->list; iter; iter = iter->next) |
384 { | 384 { |
385 GntWidget *w = GNT_WIDGET(iter->data); | 385 GntWidget *w = GNT_WIDGET(iter->data); |
386 int height, width; | |
386 | 387 |
387 if (GNT_IS_BOX(w)) | 388 if (GNT_IS_BOX(w)) |
388 gnt_box_sync_children(GNT_BOX(w)); | 389 gnt_box_sync_children(GNT_BOX(w)); |
390 | |
391 gnt_widget_get_size(w, &width, &height); | |
389 | 392 |
390 copywin(w->window, widget->window, 0, 0, | 393 copywin(w->window, widget->window, 0, 0, |
391 w->priv.y - widget->priv.y, | 394 w->priv.y - widget->priv.y, |
392 w->priv.x - widget->priv.x, | 395 w->priv.x - widget->priv.x, |
393 w->priv.y - widget->priv.y + w->priv.height - 1, | 396 w->priv.y - widget->priv.y + height - 1, |
394 w->priv.x - widget->priv.x + w->priv.width - 1, | 397 w->priv.x - widget->priv.x + width - 1, |
395 FALSE); | 398 FALSE); |
396 } | 399 } |
397 } | 400 } |
398 | 401 |