Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_topbar/space_topbar.c
| Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | static void topbar_header_region_message_subscribe( | ||||
| struct bScreen *UNUSED(screen), struct ScrArea *UNUSED(sa), struct ARegion *ar, | struct bScreen *UNUSED(screen), struct ScrArea *UNUSED(sa), struct ARegion *ar, | ||||
| struct wmMsgBus *mbus) | struct wmMsgBus *mbus) | ||||
| { | { | ||||
| wmMsgSubscribeValue msg_sub_value_region_tag_redraw = { | wmMsgSubscribeValue msg_sub_value_region_tag_redraw = { | ||||
| .owner = ar, | .owner = ar, | ||||
| .user_data = ar, | .user_data = ar, | ||||
| .notify = ED_region_do_msg_notify_tag_redraw, | .notify = ED_region_do_msg_notify_tag_redraw, | ||||
| }; | }; | ||||
| UNUSED_VARS(msg_sub_value_region_tag_redraw, workspace, mbus); | |||||
| #if 0 | |||||
| WM_msg_subscribe_rna_prop( | WM_msg_subscribe_rna_prop( | ||||
| mbus, &workspace->id, workspace, | mbus, &workspace->id, workspace, | ||||
| WorkSpace, tool_keymap, &msg_sub_value_region_tag_redraw); | WorkSpace, tool_keymap, &msg_sub_value_region_tag_redraw); | ||||
| #endif | |||||
| } | } | ||||
| static void recent_files_menu_draw(const bContext *UNUSED(C), Menu *menu) | static void recent_files_menu_draw(const bContext *UNUSED(C), Menu *menu) | ||||
| { | { | ||||
| struct RecentFile *recent; | struct RecentFile *recent; | ||||
| uiLayout *layout = menu->layout; | uiLayout *layout = menu->layout; | ||||
| uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN); | uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN); | ||||
| if (!BLI_listbase_is_empty(&G.recent_files)) { | if (!BLI_listbase_is_empty(&G.recent_files)) { | ||||
| ▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines | |||||