Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
14389:746d535e9053 | 14390:d4a26ada1971 |
---|---|
154 return TRUE; | 154 return TRUE; |
155 } | 155 } |
156 return FALSE; | 156 return FALSE; |
157 } | 157 } |
158 | 158 |
159 static void | |
160 s_window_update(PANEL *panel, GntWidget *window) | |
161 { | |
162 const char *name = gnt_widget_get_name(window); | |
163 if (name && strcmp(name, "buddylist")) | |
164 envelope_normal_window(window); | |
165 } | |
166 | |
159 void gntwm_init(GntWM *wm) | 167 void gntwm_init(GntWM *wm) |
160 { | 168 { |
161 gwm = wm; | 169 gwm = wm; |
162 wm->new_window = s_new_window; | 170 wm->new_window = s_new_window; |
163 wm->window_resized = s_resize_window; | 171 wm->window_resized = s_resize_window; |
164 wm->key_pressed = s_key_pressed; | 172 wm->key_pressed = s_key_pressed; |
165 wm->mouse_clicked = s_mouse_clicked; | 173 wm->mouse_clicked = s_mouse_clicked; |
174 wm->window_update = s_window_update; | |
166 } | 175 } |
167 | 176 |