diff options
author | Thomas Dinges <blender@dingto.org> | 2012-04-13 04:04:56 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-04-13 04:04:56 +0400 |
commit | bdce58a42c3ca63773ce9c6b32189cfe10b27039 (patch) | |
tree | 619a4fec534641c61161ca634d096458543dda50 /source/blender/editors/space_sequencer | |
parent | 2a5a465e2c05dc4d3864019790f745ab75755389 (diff) |
Code cleanup:
* Remove some non used *_button_register functions, panels are done in python.
* Remove do_node_region_buttons, was not used anymore.
Fix:
* Only show Grease Pencil panel in the Node editor, when there is a valid nodetree.
Diffstat (limited to 'source/blender/editors/space_sequencer')
3 files changed, 0 insertions, 49 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_buttons.c b/source/blender/editors/space_sequencer/sequencer_buttons.c index 81712ec10c4..aeedafa9992 100644 --- a/source/blender/editors/space_sequencer/sequencer_buttons.c +++ b/source/blender/editors/space_sequencer/sequencer_buttons.c @@ -48,50 +48,6 @@ #include "sequencer_intern.h" - -static void do_sequencer_panel_events(bContext *UNUSED(C), void *UNUSED(arg), int UNUSED(event)) -{ - -} - - -static void sequencer_panel_view_properties(const bContext *UNUSED(C), Panel *pa) -{ - uiBlock *block; - - block = uiLayoutAbsoluteBlock(pa->layout); - uiBlockSetHandleFunc(block, do_sequencer_panel_events, NULL); - -} - - -static void sequencer_panel_properties(const bContext *UNUSED(C), Panel *pa) -{ - uiBlock *block; - - block = uiLayoutAbsoluteBlock(pa->layout); - uiBlockSetHandleFunc(block, do_sequencer_panel_events, NULL); - -} - -void sequencer_buttons_register(ARegionType *art) -{ - PanelType *pt; - - pt = MEM_callocN(sizeof(PanelType), "spacetype sequencer strip properties"); - strcpy(pt->idname, "SEQUENCER_PT_properties"); - strcpy(pt->label, "Strip Properties"); - pt->draw = sequencer_panel_properties; - BLI_addtail(&art->paneltypes, pt); - - pt = MEM_callocN(sizeof(PanelType), "spacetype sequencer view properties"); - strcpy(pt->idname, "SEQUENCER_PT_view_properties"); - strcpy(pt->label, "View Properties"); - pt->draw = sequencer_panel_view_properties; - BLI_addtail(&art->paneltypes, pt); - -} - /* **************** operator to open/close properties view ************* */ static int sequencer_properties(bContext *C, wmOperator *UNUSED(op)) diff --git a/source/blender/editors/space_sequencer/sequencer_intern.h b/source/blender/editors/space_sequencer/sequencer_intern.h index 7acaaf76c62..c40a809e6af 100644 --- a/source/blender/editors/space_sequencer/sequencer_intern.h +++ b/source/blender/editors/space_sequencer/sequencer_intern.h @@ -176,7 +176,6 @@ struct ImBuf *make_histogram_view_from_ibuf(struct ImBuf * ibuf); /* sequencer_buttons.c */ void SEQUENCER_OT_properties(struct wmOperatorType *ot); -void sequencer_buttons_register(struct ARegionType *art); #endif /* __SEQUENCER_INTERN_H__ */ diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c index 82965426b6d..ec340dd323e 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.c +++ b/source/blender/editors/space_sequencer/space_sequencer.c @@ -570,10 +570,6 @@ void ED_spacetype_sequencer(void) art->init = sequencer_buttons_area_init; art->draw = sequencer_buttons_area_draw; BLI_addhead(&st->regiontypes, art); - - /* Keep as python only for now - * sequencer_buttons_register(art); - */ /* regions: header */ art = MEM_callocN(sizeof(ARegionType), "spacetype sequencer region"); |