Changeset 344f8b9 in mainline for uspace/lib/ui/src/menuentry.c
- Timestamp:
- 2021-05-20T15:34:03Z (4 years ago)
- Children:
- f2416ec3
- Parents:
- da15002
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menuentry.c
rda15002 r344f8b9 203 203 ui_resource_t *res; 204 204 205 /* 206 * This needs to work even if the menu is not open, so we cannot 207 * use the menu's resource, which is only created after the menu 208 * is open (and its window is created). Use the menu bar's 209 * resource instead. 210 */ 205 211 res = mentry->menu->mbar->res; 206 212 … … 223 229 gfx_coord_t width; 224 230 231 /* 232 * This needs to work even if the menu is not open, so we cannot 233 * use the menu's resource, which is only created after the menu 234 * is open (and its window is created). Use the menu bar's 235 * resource instead. 236 */ 225 237 res = menu->mbar->res; 226 238 … … 256 268 gfx_coord_t vpad; 257 269 270 /* 271 * This needs to work even if the menu is not open, so we cannot 272 * use the menu's resource, which is only created after the menu 273 * is open (and its window is created). Use the menu bar's 274 * resource instead. 275 */ 258 276 res = mentry->menu->mbar->res; 259 277 … … 294 312 errno_t rc; 295 313 296 res = mentry->menu->mbar->res;314 res = ui_menu_get_res(mentry->menu); 297 315 298 316 ui_menu_entry_get_geom(mentry, pos, &geom); … … 379 397 if (mentry->inside) { 380 398 /* Close menu */ 381 ui_menu_bar_select(mentry->menu->mbar, 382 &mentry->menu->mbar->sel_pos, NULL); 399 ui_menu_bar_select(mentry->menu->mbar, NULL, NULL); 383 400 384 401 /* Call back */ … … 487 504 gfx_coord_t width; 488 505 489 res = mentry->menu->mbar->res;506 res = ui_menu_get_res(mentry->menu); 490 507 491 508 if (res->textmode) {
Note:
See TracChangeset
for help on using the changeset viewer.