comparison src/menubar-x.c @ 357:4711e16a8e49 r21-1-8

Import from CVS: tag r21-1-8
author cvs
date Mon, 13 Aug 2007 10:57:04 +0200
parents 182f72e8cd0d
children 8e84bee8ddd0
comparison
equal deleted inserted replaced
356:e85f639a32f3 357:4711e16a8e49
465 if (!wv) 465 if (!wv)
466 { 466 {
467 wv = xmalloc_widget_value (); 467 wv = xmalloc_widget_value ();
468 wv->type = CASCADE_TYPE; 468 wv->type = CASCADE_TYPE;
469 wv->next = NULL; 469 wv->next = NULL;
470 wv->accel = LISP_TO_VOID (Qnil);
470 wv->contents = xmalloc_widget_value (); 471 wv->contents = xmalloc_widget_value ();
471 wv->contents->type = TEXT_TYPE; 472 wv->contents->type = TEXT_TYPE;
472 wv->contents->name = (char *) "No menu"; 473 wv->contents->name = (char *) "No menu";
473 wv->contents->next = NULL; 474 wv->contents->next = NULL;
475 wv->contents->accel = LISP_TO_VOID (Qnil);
474 } 476 }
475 assert (wv && wv->type == CASCADE_TYPE && wv->contents); 477 assert (wv && wv->type == CASCADE_TYPE && wv->contents);
476 replace_widget_value_tree (hack_wv, wv->contents); 478 replace_widget_value_tree (hack_wv, wv->contents);
477 free_popup_widget_value_tree (wv); 479 free_popup_widget_value_tree (wv);
478 } 480 }