- Timestamp:
- Jun 2, 2010, 8:53:27 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 3e0147f
- Parents:
- 40d1eef
- git-author:
- David Benjamin <davidben@mit.edu> (06/02/10 20:50:16)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/02/10 20:53:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mainwin.c
r40d1eef rfa65671 2 2 3 3 static void owl_mainwin_redraw(owl_window *w, WINDOW *recwin, void *user_data); 4 static void owl_mainwin_resized(owl_window *w, void *user_data); 4 5 5 6 void owl_mainwin_init(owl_mainwin *mw, owl_window *window) … … 8 9 mw->lastdisplayed=-1; 9 10 mw->window = g_object_ref(window); 11 /* for now, just assume this object lasts forever */ 10 12 g_signal_connect(window, "redraw", G_CALLBACK(owl_mainwin_redraw), mw); 13 g_signal_connect(window, "resized", G_CALLBACK(owl_mainwin_resized), mw); 14 } 15 16 static void owl_mainwin_resized(owl_window *w, void *user_data) 17 { 18 owl_mainwin *mw = user_data; 19 20 /* in case any styles rely on the current width */ 21 owl_messagelist_invalidate_formats(owl_global_get_msglist(&g)); 22 23 /* recalculate the topmsg to make sure the current message is on 24 * screen */ 25 owl_function_calculate_topmsg(OWL_DIRECTION_NONE); 26 27 /* Schedule a redraw */ 28 owl_window_dirty(mw->window); 11 29 } 12 30
Note: See TracChangeset
for help on using the changeset viewer.