diff options
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r-- | source/blender/editors/space_text/text_header.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/source/blender/editors/space_text/text_header.c b/source/blender/editors/space_text/text_header.c index d0a02f558e1..935103db02b 100644 --- a/source/blender/editors/space_text/text_header.c +++ b/source/blender/editors/space_text/text_header.c @@ -87,76 +87,6 @@ /* ************************ header area region *********************** */ -#ifndef DISABLE_PYTHON -#if 0 -static void do_text_template_scriptsmenu(bContext *C, void *arg, int event) -{ - // XXX BPY_menu_do_python(PYMENU_SCRIPTTEMPLATE, event); -} - -static uiBlock *text_template_scriptsmenu(bContext *C, void *args_unused) -{ - ARegion *ar= CTX_wm_region(C); - uiBlock *block; - // XXX BPyMenu *pym; - // int i= 0; - // short yco = 20, menuwidth = 120; - - block= uiBeginBlock(C, ar, "text_template_scriptsmenu", UI_EMBOSSP); - uiBlockSetButmFunc(block, do_text_template_scriptsmenu, NULL); - - /* note that we acount for the N previous entries with i+20: */ - /* XXX for (pym = BPyMenuTable[PYMENU_SCRIPTTEMPLATE]; pym; pym = pym->next, i++) { - - uiDefIconTextBut(block, BUTM, 1, ICON_PYTHON, pym->name, 0, yco-=20, menuwidth, 19, - NULL, 0.0, 0.0, 1, i, - pym->tooltip?pym->tooltip:pym->filename); - }*/ - - uiBlockSetDirection(block, UI_RIGHT); - uiTextBoundsBlock(block, 60); - - uiEndBlock(C, block); - uiDrawBlock(C, block); - - return block; -} - -static void do_text_plugin_scriptsmenu(bContext *C, void *arg, int event) -{ - // XXX BPY_menu_do_python(PYMENU_TEXTPLUGIN, event); -} - -static uiBlock *text_plugin_scriptsmenu(bContext *C, void *args_unused) -{ - ARegion *ar= CTX_wm_region(C); - uiBlock *block; - // XXX BPyMenu *pym; - // int i= 0; - // short yco = 20, menuwidth = 120; - - block= uiBeginBlock(C, ar, "text_plugin_scriptsmenu", UI_EMBOSSP); - uiBlockSetButmFunc(block, do_text_plugin_scriptsmenu, NULL); - - /* note that we acount for the N previous entries with i+20: */ - /* XXX for (pym = BPyMenuTable[PYMENU_TEXTPLUGIN]; pym; pym = pym->next, i++) { - - uiDefIconTextBut(block, BUTM, 1, ICON_PYTHON, pym->name, 0, yco-=20, menuwidth, 19, - NULL, 0.0, 0.0, 1, i, - pym->tooltip?pym->tooltip:pym->filename); - }*/ - - uiBlockSetDirection(block, UI_RIGHT); - uiTextBoundsBlock(block, 60); - - uiEndBlock(C, block); - uiDrawBlock(C, block); - - return block; -} -#endif -#endif - /************************** properties ******************************/ ARegion *text_has_properties_region(ScrArea *sa) |