Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_buttons/buttons_context.c
| Show First 20 Lines • Show All 1,176 Lines • ▼ Show 20 Lines | |||||
| void buttons_context_register(ARegionType *art) | void buttons_context_register(ARegionType *art) | ||||
| { | { | ||||
| PanelType *pt = MEM_callocN(sizeof(PanelType), "spacetype buttons panel context"); | PanelType *pt = MEM_callocN(sizeof(PanelType), "spacetype buttons panel context"); | ||||
| strcpy(pt->idname, "PROPERTIES_PT_context"); | strcpy(pt->idname, "PROPERTIES_PT_context"); | ||||
| strcpy(pt->label, N_("Context")); /* XXX C panels unavailable through RNA bpy.types! */ | strcpy(pt->label, N_("Context")); /* XXX C panels unavailable through RNA bpy.types! */ | ||||
| strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); | strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); | ||||
| pt->poll = buttons_panel_context_poll; | pt->poll = buttons_panel_context_poll; | ||||
| pt->draw = buttons_panel_context_draw; | pt->draw = buttons_panel_context_draw; | ||||
| pt->flag = PNL_NO_HEADER; | pt->flag = PNL_NO_HEADER | PNL_NO_SEARCH; | ||||
| BLI_addtail(&art->paneltypes, pt); | BLI_addtail(&art->paneltypes, pt); | ||||
| } | } | ||||
| ID *buttons_context_id_path(const bContext *C) | ID *buttons_context_id_path(const bContext *C) | ||||
| { | { | ||||
| SpaceProperties *sbuts = CTX_wm_space_properties(C); | SpaceProperties *sbuts = CTX_wm_space_properties(C); | ||||
| ButsContextPath *path = sbuts->path; | ButsContextPath *path = sbuts->path; | ||||
| Show All 29 Lines | |||||