Mercurial > pidgin
diff console/libgnt/wms/s.c @ 14390:d4a26ada1971
[gaim-migrate @ 17096]
Give a bit more control to the window-manager about the size/position of
a window. Also, give the WM an opportunity to do its thing when the window
changes something (eg. title, 'urgency').
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 31 Aug 2006 06:39:20 +0000 |
parents | 665b814f8fd7 |
children | 84a480acb6ad |
line wrap: on
line diff
--- a/console/libgnt/wms/s.c Thu Aug 31 05:58:32 2006 +0000 +++ b/console/libgnt/wms/s.c Thu Aug 31 06:39:20 2006 +0000 @@ -156,6 +156,14 @@ return FALSE; } +static void +s_window_update(PANEL *panel, GntWidget *window) +{ + const char *name = gnt_widget_get_name(window); + if (name && strcmp(name, "buddylist")) + envelope_normal_window(window); +} + void gntwm_init(GntWM *wm) { gwm = wm; @@ -163,5 +171,6 @@ wm->window_resized = s_resize_window; wm->key_pressed = s_key_pressed; wm->mouse_clicked = s_mouse_clicked; + wm->window_update = s_window_update; }