Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-29 16:02:21 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-29 17:25:50 +0300
commit0d085790d13b2c261210addb12fabc1fea82bdef (patch)
treea7f778e09368e9691bb413b3c665acd90e435c16 /source/blender/editors/space_info
parent42f7767dab56ce6cf26e490c3cb2c689b2b0d507 (diff)
Python / Cleanup: rename INFO_MT to TOPBAR_MT/VIEW3D_MT to reflect actual location.
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/space_info.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/source/blender/editors/space_info/space_info.c b/source/blender/editors/space_info/space_info.c
index 7f4d2a7f6c7..397a58ea3ea 100644
--- a/source/blender/editors/space_info/space_info.c
+++ b/source/blender/editors/space_info/space_info.c
@@ -306,35 +306,6 @@ static void info_header_region_message_subscribe(
WM_msg_subscribe_rna_anon_prop(mbus, ViewLayer, name, &msg_sub_value_region_tag_redraw);
}
-static void recent_files_menu_draw(const bContext *UNUSED(C), Menu *menu)
-{
- struct RecentFile *recent;
- uiLayout *layout = menu->layout;
- uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN);
- if (!BLI_listbase_is_empty(&G.recent_files)) {
- for (recent = G.recent_files.first; (recent); recent = recent->next) {
- const char *file = BLI_path_basename(recent->filepath);
- const int icon = BLO_has_bfile_extension(file) ? ICON_FILE_BLEND : ICON_FILE_BACKUP;
- uiItemStringO(layout, file, icon, "WM_OT_open_mainfile", "filepath", recent->filepath);
- }
- }
- else {
- uiItemL(layout, IFACE_("No Recent Files"), ICON_NONE);
- }
-}
-
-static void recent_files_menu_register(void)
-{
- MenuType *mt;
-
- mt = MEM_callocN(sizeof(MenuType), "spacetype info menu recent files");
- strcpy(mt->idname, "INFO_MT_file_open_recent");
- strcpy(mt->label, N_("Open Recent..."));
- strcpy(mt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
- mt->draw = recent_files_menu_draw;
- WM_menutype_add(mt);
-}
-
/* only called once, from space/spacetypes.c */
void ED_spacetype_info(void)
{
@@ -375,7 +346,5 @@ void ED_spacetype_info(void)
BLI_addhead(&st->regiontypes, art);
- recent_files_menu_register();
-
BKE_spacetype_register(st);
}