{
/* TODO : destroy other component */
messageview_destroy(mainwin->messageview);
+ mainwin->messageview = NULL;
}
void main_window_update_actions_menu(MainWindow *mainwin)
{
GtkAllocation *allocation;
+ if (mainwin->messageview == NULL) {
+ debug_print("called after messageview "
+ "has been deallocated!\n");
+ return;
+ }
+
allocation = &(GTK_WIDGET_PTR(mainwin->summaryview)->allocation);
if (allocation->width > 1 && allocation->height > 1) {